Home
last modified time | relevance | path

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

123

/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DIncludeInserter.cpp26 bool IsAngled, CharSourceRange FileNameRange, in InclusionDirective() argument
31 Inserter->addInclude(FileNameRef, IsAngled, HashLocation, in InclusionDirective()
71 bool IsAngled = Header.consume_front("<"); in createIncludeInsertion() local
72 if (IsAngled != Header.consume_back(">")) in createIncludeInsertion()
79 return getOrCreate(FileID).CreateIncludeInsertion(Header, IsAngled); in createIncludeInsertion()
89 void IncludeInserter::addInclude(StringRef FileName, bool IsAngled, in addInclude() argument
95 getOrCreate(FileID).AddInclude(FileName, IsAngled, HashLocation, EndLocation); in addInclude()
DIncludeSorter.cpp68 bool IsAngled, IncludeSorter::IncludeStyle Style) { in DetermineIncludeKind() argument
73 if (IsAngled) { in DetermineIncludeKind()
132 void IncludeSorter::AddInclude(StringRef FileName, bool IsAngled, in AddInclude() argument
148 DetermineIncludeKind(CanonicalFile, FileName, IsAngled, Style); in AddInclude()
154 bool IsAngled) { in CreateIncludeInsertion() argument
157 IncludeStmt = IsAngled in CreateIncludeInsertion()
161 IncludeStmt = IsAngled in CreateIncludeInsertion()
174 DetermineIncludeKind(CanonicalFile, FileName, IsAngled, Style); in CreateIncludeInsertion()
DIncludeSorter.h44 void AddInclude(StringRef FileName, bool IsAngled,
49 Optional<FixItHint> CreateIncludeInsertion(StringRef FileName, bool IsAngled);
DIncludeInserter.h87 void addInclude(StringRef FileName, bool IsAngled,
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DIncludeOrderCheck.cpp28 StringRef FileName, bool IsAngled,
40 bool IsAngled; ///< true if this was an include with angle brackets member
59 static int getPriority(StringRef Filename, bool IsAngled, bool IsMainModule) { in getPriority() argument
70 if (IsAngled || Filename.startswith("gtest/") || in getPriority()
80 bool IsAngled, CharSourceRange FilenameRange, const FileEntry *File, in InclusionDirective() argument
86 IsAngled, false}; in InclusionDirective()
87 if (LookForMainModule && !IsAngled) { in InclusionDirective()
131 getPriority(LHS.Filename, LHS.IsAngled, LHS.IsMainModule); in EndOfMainFile()
133 getPriority(RHS.Filename, RHS.IsAngled, RHS.IsMainModule); in EndOfMainFile()
/external/llvm-project/clang/lib/Lex/
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()
DPreprocessingRecord.cpp464 bool IsAngled, in InclusionDirective() argument
495 if (!IsAngled) { in InclusionDirective()
504 new (*this) clang::InclusionDirective(*this, Kind, FileName, !IsAngled, in InclusionDirective()
/external/llvm-project/clang-tools-extra/clang-tidy/llvmlibc/
DRestrictSystemLibcHeadersCheck.cpp35 StringRef FileName, bool IsAngled,
49 bool IsAngled, CharSourceRange FilenameRange, const FileEntry *File, in InclusionDirective() argument
56 HashLoc, IncludeTok, FileName, IsAngled, FilenameRange, File, SearchPath, in InclusionDirective()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousIncludeCheck.cpp26 StringRef FileName, bool IsAngled,
75 bool IsAngled, CharSourceRange FilenameRange, const FileEntry *File, in InclusionDirective() argument
98 PP->LookupFile(DiagLoc, GuessedFileName, IsAngled, nullptr, nullptr, in InclusionDirective()
/external/llvm-project/clang/lib/Tooling/Inclusions/
DHeaderIncludes.cpp343 HeaderIncludes::insert(llvm::StringRef IncludeName, bool IsAngled) const { in insert()
351 if ((IsAngled && StringRef(Inc.Name).startswith("<")) || in insert()
352 (!IsAngled && StringRef(Inc.Name).startswith("\""))) in insert()
355 std::string(llvm::formatv(IsAngled ? "<{0}>" : "\"{0}\"", IncludeName)); in insert()
384 bool IsAngled) const { in remove()
391 if ((IsAngled && StringRef(Inc.Name).startswith("\"")) || in remove()
392 (!IsAngled && StringRef(Inc.Name).startswith("<"))) in remove()
/external/llvm-project/clang/include/clang/Tooling/Inclusions/
DHeaderIncludes.h73 bool IsAngled) const;
79 tooling::Replacements remove(llvm::StringRef Header, bool IsAngled) const;
/external/llvm-project/clang-tools-extra/clangd/unittests/
DParsedASTTests.cpp357 const Token &IncludeTok, llvm::StringRef FileName, bool IsAngled, in TEST()
362 FileName(FileName), IsAngled(IsAngled) {} in TEST()
368 bool IsAngled; in TEST() member
377 StringRef FileName, bool IsAngled, in TEST()
381 Includes.emplace_back(SM, HashLoc, IncludeTok, FileName, IsAngled, in TEST()
450 EXPECT_EQ(Inc.IsAngled, Code[FileBeginLocs[I]] == '<'); in TEST()
/external/clang/unittests/Lex/
DPPCallbacksTest.cpp57 StringRef FileName, bool IsAngled, in InclusionDirective() argument
64 this->IsAngled = IsAngled; in InclusionDirective()
75 bool IsAngled; member in __anon5d7da8300111::InclusionDirectiveCallbacks
/external/llvm-project/clang/include/clang/Lex/
DPPCallbacks.h125 bool IsAngled, in InclusionDirective() argument
309 virtual void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled,
406 StringRef FileName, bool IsAngled, in InclusionDirective() argument
411 First->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, in InclusionDirective()
414 Second->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, in InclusionDirective()
492 void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled,
DCodeCompletionHandler.h67 virtual void CodeCompleteIncludedFile(llvm::StringRef Dir, bool IsAngled) {} in CodeCompleteIncludedFile() argument
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DDeprecatedHeadersCheck.cpp29 StringRef FileName, bool IsAngled,
94 bool IsAngled, CharSourceRange FilenameRange, const FileEntry *File, in InclusionDirective() argument
/external/clang/lib/Frontend/
DDependencyGraph.cpp50 StringRef FileName, bool IsAngled,
71 bool IsAngled, in InclusionDirective() argument
DDependencyFile.cpp63 StringRef FileName, bool IsAngled, in InclusionDirective()
189 StringRef FileName, bool IsAngled,
297 bool IsAngled, in InclusionDirective() argument
DPrintPreprocessedOutput.cpp127 StringRef FileName, bool IsAngled,
317 bool IsAngled, in InclusionDirective() argument
337 << (IsAngled ? '<' : '"') in InclusionDirective()
339 << (IsAngled ? '>' : '"') in InclusionDirective()
/external/llvm-project/clang/lib/Frontend/
DDependencyGraph.cpp49 StringRef FileName, bool IsAngled,
72 bool IsAngled, in InclusionDirective() argument
DPrintPreprocessedOutput.cpp129 StringRef FileName, bool IsAngled,
329 bool IsAngled, in InclusionDirective() argument
344 << (IsAngled ? '<' : '"') << FileName << (IsAngled ? '>' : '"') in InclusionDirective()
361 << (IsAngled ? '<' : '"') << FileName << (IsAngled ? '>' : '"') in InclusionDirective()
/external/clang/include/clang/Lex/
DPPCallbacks.h125 bool IsAngled, in InclusionDirective() argument
354 StringRef FileName, bool IsAngled, in InclusionDirective() argument
358 First->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, in InclusionDirective()
361 Second->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, in InclusionDirective()
/external/llvm-project/clang/unittests/Lex/
DPPCallbacksTest.cpp37 StringRef FileName, bool IsAngled, in InclusionDirective() argument
45 this->IsAngled = IsAngled; in InclusionDirective()
57 bool IsAngled; member in __anonca70cdbe0111::InclusionDirectiveCallbacks
/external/llvm-project/clang/lib/CodeGen/
DMacroPPCallbacks.h103 StringRef FileName, bool IsAngled,
/external/clang/lib/Lex/
DPreprocessingRecord.cpp438 bool IsAngled, in InclusionDirective() argument
468 if (!IsAngled) { in InclusionDirective()
477 = new (*this) clang::InclusionDirective(*this, Kind, FileName, !IsAngled, in InclusionDirective()

123