Home
last modified time | relevance | path

Searched refs:IsAngled (Results 1 – 25 of 51) sorted by relevance

123

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DIncludeInserter.cpp26 bool IsAngled, CharSourceRange FileNameRange, in InclusionDirective() argument
31 Inserter->addInclude(FileNameRef, IsAngled, HashLocation, in InclusionDirective()
72 bool IsAngled = Header.consume_front("<"); in createIncludeInsertion() local
73 if (IsAngled != Header.consume_back(">")) in createIncludeInsertion()
82 return getOrCreate(FileID).createIncludeInsertion(Header, IsAngled); in createIncludeInsertion()
92 void IncludeInserter::addInclude(StringRef FileName, bool IsAngled, in addInclude() argument
98 getOrCreate(FileID).addInclude(FileName, IsAngled, HashLocation, EndLocation); in addInclude()
H A DIncludeSorter.cpp68 bool IsAngled, IncludeSorter::IncludeStyle Style) { in determineIncludeKind() argument
73 if (IsAngled) { in determineIncludeKind()
131 void IncludeSorter::addInclude(StringRef FileName, bool IsAngled, in addInclude() argument
147 determineIncludeKind(CanonicalFile, FileName, IsAngled, Style); in addInclude()
153 bool IsAngled) { in createIncludeInsertion() argument
156 IncludeStmt = IsAngled in createIncludeInsertion()
160 IncludeStmt = IsAngled in createIncludeInsertion()
173 determineIncludeKind(CanonicalFile, FileName, IsAngled, Style); in createIncludeInsertion()
H A DIncludeSorter.h44 void addInclude(StringRef FileName, bool IsAngled,
49 Optional<FixItHint> createIncludeInsertion(StringRef FileName, bool IsAngled);
H A DIncludeInserter.h88 void addInclude(StringRef FileName, bool IsAngled,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DIncludeOrderCheck.cpp29 StringRef FileName, bool IsAngled,
41 bool IsAngled; ///< true if this was an include with angle brackets member
60 static int getPriority(StringRef Filename, bool IsAngled, bool IsMainModule) { in getPriority() argument
76 if (IsAngled) in getPriority()
85 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective() argument
91 IsAngled, false}; in InclusionDirective()
92 if (LookForMainModule && !IsAngled) { in InclusionDirective()
135 int PriorityLHS = getPriority(LHS.Filename, LHS.IsAngled, in EndOfMainFile()
137 int PriorityRHS = getPriority(RHS.Filename, RHS.IsAngled, in EndOfMainFile()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPCallbacks.cpp18 bool IsAngled, Optional<FileEntryRef> File, in HasInclude() argument
25 bool IsAngled, Optional<FileEntryRef> File, in HasInclude() argument
27 First->HasInclude(Loc, FileName, IsAngled, File, FileType); in HasInclude()
28 Second->HasInclude(Loc, FileName, IsAngled, File, FileType); in HasInclude()
H A DPreprocessingRecord.cpp482 bool IsAngled, in InclusionDirective() argument
513 if (!IsAngled) { in InclusionDirective()
522 new (*this) clang::InclusionDirective(*this, Kind, FileName, !IsAngled, in InclusionDirective()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvmlibc/
H A DRestrictSystemLibcHeadersCheck.cpp35 StringRef FileName, bool IsAngled,
49 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective() argument
56 HashLoc, IncludeTok, FileName, IsAngled, FilenameRange, File, SearchPath, in InclusionDirective()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousIncludeCheck.cpp26 StringRef FileName, bool IsAngled,
75 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective() argument
97 PP->LookupFile(DiagLoc, GuessedFileName, IsAngled, nullptr, nullptr, in InclusionDirective()
/llvm-project-15.0.7/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp344 HeaderIncludes::insert(llvm::StringRef IncludeName, bool IsAngled) const { in insert()
352 if ((IsAngled && StringRef(Inc.Name).startswith("<")) || in insert()
353 (!IsAngled && StringRef(Inc.Name).startswith("\""))) in insert()
356 std::string(llvm::formatv(IsAngled ? "<{0}>" : "\"{0}\"", IncludeName)); in insert()
385 bool IsAngled) const { in remove()
392 if ((IsAngled && StringRef(Inc.Name).startswith("\"")) || in remove()
393 (!IsAngled && StringRef(Inc.Name).startswith("<"))) in remove()
/llvm-project-15.0.7/clang/include/clang/Tooling/Inclusions/
H A DHeaderIncludes.h74 bool IsAngled) const;
80 tooling::Replacements remove(llvm::StringRef Header, bool IsAngled) const;
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DPPCallbacks.h130 bool IsAngled, in InclusionDirective() argument
329 virtual void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled,
459 StringRef FileName, bool IsAngled, in InclusionDirective() argument
464 First->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, in InclusionDirective()
467 Second->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, in InclusionDirective()
550 void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled,
H A DCodeCompletionHandler.h67 virtual void CodeCompleteIncludedFile(llvm::StringRef Dir, bool IsAngled) {} in CodeCompleteIncludedFile() argument
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DDuplicateIncludeCheck.cpp49 StringRef FileName, bool IsAngled,
80 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective() argument
/llvm-project-15.0.7/clang/lib/Frontend/
H A DDependencyGraph.cpp49 StringRef FileName, bool IsAngled,
72 bool IsAngled, in InclusionDirective() argument
H A DPrintPreprocessedOutput.cpp147 StringRef FileName, bool IsAngled,
395 bool IsAngled, in InclusionDirective() argument
409 << (IsAngled ? '<' : '"') << FileName << (IsAngled ? '>' : '"') in InclusionDirective()
424 << (IsAngled ? '<' : '"') << FileName << (IsAngled ? '>' : '"') in InclusionDirective()
H A DDependencyFile.cpp66 StringRef FileName, bool IsAngled, in InclusionDirective()
78 void HasInclude(SourceLocation Loc, StringRef SpelledFilename, bool IsAngled, in HasInclude()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DParsedASTTests.cpp358 const Token &IncludeTok, llvm::StringRef FileName, bool IsAngled, in TEST()
363 FileName(FileName), IsAngled(IsAngled) { in TEST()
373 bool IsAngled; in TEST() member
382 StringRef FileName, bool IsAngled, in TEST()
387 Includes.emplace_back(SM, HashLoc, IncludeTok, FileName, IsAngled, in TEST()
456 EXPECT_EQ(Inc.IsAngled, Code[FileBeginLocs[I]] == '<'); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DDeprecatedHeadersCheck.cpp34 StringRef FileName, bool IsAngled,
182 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective() argument
/llvm-project-15.0.7/clang/unittests/Lex/
H A DPPCallbacksTest.cpp37 StringRef FileName, bool IsAngled, in InclusionDirective() argument
45 this->IsAngled = IsAngled; in InclusionDirective()
57 bool IsAngled; member in __anonec3cc9fe0111::InclusionDirectiveCallbacks
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHeaders.cpp47 llvm::StringRef FileName, bool IsAngled, in InclusionDirective() argument
65 (IsAngled ? "<" + FileName + ">" : "\"" + FileName + "\"").str(); in InclusionDirective()
78 if (IsAngled) in InclusionDirective()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DMacroPPCallbacks.h102 StringRef FileName, bool IsAngled,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/portability/
H A DRestrictSystemIncludesCheck.cpp25 bool IsAngled, CharSourceRange FilenameRange, Optional<FileEntryRef> File, in InclusionDirective() argument
H A DRestrictSystemIncludesCheck.h52 StringRef FileName, bool IsAngled,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DKernelNameRestrictionCheck.cpp31 StringRef FileName, bool IsAngled,

123