Home
last modified time | relevance | path

Searched refs:HashLoc (Results 1 – 25 of 46) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clang-tidy/portability/
DRestrictSystemIncludesCheck.cpp24 SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, in InclusionDirective() argument
34 IncludeDirectives[SM.getFileID(HashLoc)].emplace_back( in InclusionDirective()
35 HashLoc, FilenameRange, FileName, FullPath.str(), in InclusionDirective()
36 SM.isInMainFile(HashLoc)); in InclusionDirective()
DRestrictSystemIncludesCheck.h51 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
/external/llvm-project/clang-tools-extra/clangd/
DHeaders.cpp34 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, in InclusionDirective() argument
44 HashLoc = translatePreamblePatchLocation(HashLoc, SM); in InclusionDirective()
48 if (isInsideMainFile(HashLoc, SM)) { in InclusionDirective()
54 Inc.HashOffset = SM.getFileOffset(HashLoc); in InclusionDirective()
56 SM.getLineNumber(SM.getFileID(HashLoc), Inc.HashOffset) - 1; in InclusionDirective()
63 auto *IncludingFileEntry = SM.getFileEntryForID(SM.getFileID(HashLoc)); in InclusionDirective()
65 assert(SM.getBufferName(HashLoc).startswith("<") && in InclusionDirective()
/external/llvm-project/clang-tools-extra/clang-tidy/llvmlibc/
DRestrictSystemLibcHeadersCheck.cpp34 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
48 SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, in InclusionDirective() argument
56 HashLoc, IncludeTok, FileName, IsAngled, FilenameRange, File, SearchPath, in InclusionDirective()
/external/llvm-project/clang-tools-extra/clang-tidy/altera/
DKernelNameRestrictionCheck.cpp30 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
64 SourceLocation HashLoc, const Token &, StringRef FileName, bool, in InclusionDirective() argument
67 IncludeDirective ID = {HashLoc, FileName}; in InclusionDirective()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DDeprecatedHeadersCheck.cpp28 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
93 SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, in InclusionDirective() argument
116 SourceRange(HashLoc, FilenameRange.getEnd())); in InclusionDirective()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DIncludeOrderCheck.cpp27 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
79 SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, in InclusionDirective() argument
85 IncludeDirective ID = {HashLoc, FilenameRange, std::string(FileName), in InclusionDirective()
93 IncludeDirectives[SM.getFileID(HashLoc)].push_back(std::move(ID)); in InclusionDirective()
/external/clang/lib/Frontend/
DDependencyGraph.cpp49 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
68 void DependencyGraphCallback::InclusionDirective(SourceLocation HashLoc, in InclusionDirective() argument
82 = SM.getFileEntryForID(SM.getFileID(SM.getExpansionLoc(HashLoc))); in InclusionDirective()
DDependencyFile.cpp62 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, in InclusionDirective()
188 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
294 void DFGImpl::InclusionDirective(SourceLocation HashLoc, in InclusionDirective() argument
/external/llvm-project/clang/lib/Frontend/
DDependencyGraph.cpp48 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
69 SourceLocation HashLoc, in InclusionDirective() argument
84 = SM.getFileEntryForID(SM.getFileID(SM.getExpansionLoc(HashLoc))); in InclusionDirective()
DPrintPreprocessedOutput.cpp128 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
326 SourceLocation HashLoc, in InclusionDirective() argument
340 MoveToLine(HashLoc); in InclusionDirective()
357 MoveToLine(HashLoc); in InclusionDirective()
/external/clang/unittests/Lex/
DPPCallbacksTest.cpp56 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, in InclusionDirective() argument
61 this->HashLoc = HashLoc; in InclusionDirective()
72 SourceLocation HashLoc; member in __anon701ea7170111::InclusionDirectiveCallbacks
/external/llvm-project/clang/lib/Lex/
DPPDirectives.cpp373 SourceLocation HashLoc) { in getSkippedRangeForExcludedConditionalBlock() argument
376 if (!HashLoc.isFileID()) in getSkippedRangeForExcludedConditionalBlock()
380 SourceMgr.getDecomposedLoc(HashLoc); in getSkippedRangeForExcludedConditionalBlock()
878 SourceLocation HashLoc) { in HandleSkippedDirectiveWhileUsingPCH() argument
886 return HandleIncludeDirective(HashLoc, Result); in HandleSkippedDirectiveWhileUsingPCH()
1566 Preprocessor &PP, SourceLocation HashLoc, Token &IncludeTok, in diagnoseAutoModuleImport() argument
1606 CharSourceRange ReplaceRange(SourceRange(HashLoc, PathEnd), in diagnoseAutoModuleImport()
1608 PP.Diag(HashLoc, diag::warn_auto_module_import) in diagnoseAutoModuleImport()
1678 void Preprocessor::HandleIncludeDirective(SourceLocation HashLoc, in HandleIncludeDirective() argument
1700 auto Action = HandleHeaderIncludeOrImport(HashLoc, IncludeTok, FilenameTok, in HandleIncludeDirective()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousIncludeCheck.cpp25 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
74 SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, in InclusionDirective() argument
/external/clang/lib/Lex/
DPPDirectives.cpp1599 Preprocessor &PP, SourceLocation HashLoc, Token &IncludeTok, in diagnoseAutoModuleImport() argument
1633 CharSourceRange ReplaceRange(SourceRange(HashLoc, PathEnd), in diagnoseAutoModuleImport()
1635 PP.Diag(HashLoc, diag::warn_auto_module_import) in diagnoseAutoModuleImport()
1679 void Preprocessor::HandleIncludeDirective(SourceLocation HashLoc, in HandleIncludeDirective() argument
1746 Diag(HashLoc, diag::err_pp_include_in_arc_cf_code_audited); in HandleIncludeDirective()
1755 Diag(HashLoc, diag::err_pp_include_in_assume_nonnull); in HandleIncludeDirective()
1889 diagnoseAutoModuleImport(*this, HashLoc, IncludeTok, Path, CharEnd); in HandleIncludeDirective()
1930 HashLoc, IncludeTok, in HandleIncludeDirective()
1996 makeModuleVisible(M, HashLoc); in HandleIncludeDirective()
2000 EnterAnnotationToken(*this, HashLoc, End, tok::annot_module_include, M); in HandleIncludeDirective()
[all …]
/external/clang/include/clang/Lex/
DPPCallbacks.h122 virtual void InclusionDirective(SourceLocation HashLoc, in InclusionDirective() argument
353 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, 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/lib/CodeGen/
DMacroPPCallbacks.cpp169 SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, in InclusionDirective() argument
175 LastHashLoc = HashLoc; in InclusionDirective()
DMacroPPCallbacks.h102 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
/external/llvm-project/clang/unittests/Lex/
DPPCallbacksTest.cpp36 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, in InclusionDirective() argument
42 this->HashLoc = HashLoc; in InclusionDirective()
54 SourceLocation HashLoc; member in __anon51328c050111::InclusionDirectiveCallbacks
/external/llvm-project/clang/include/clang/Lex/
DPPCallbacks.h122 virtual void InclusionDirective(SourceLocation HashLoc, in InclusionDirective() argument
405 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, in InclusionDirective() argument
411 First->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, in InclusionDirective()
414 Second->InclusionDirective(HashLoc, IncludeTok, FileName, IsAngled, in InclusionDirective()
DPreprocessor.h1314 SourceLocation HashLoc);
2268 void HandleIncludeDirective(SourceLocation HashLoc, Token &Tok,
2272 HandleHeaderIncludeOrImport(SourceLocation HashLoc, Token &IncludeTok,
2276 void HandleIncludeNextDirective(SourceLocation HashLoc, Token &Tok);
2277 void HandleIncludeMacrosDirective(SourceLocation HashLoc, Token &Tok);
2278 void HandleImportDirective(SourceLocation HashLoc, Token &Tok);
2383 getSkippedRangeForExcludedConditionalBlock(SourceLocation HashLoc);
/external/llvm-project/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp77 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
189 void InclusionRewriter::InclusionDirective(SourceLocation HashLoc, in InclusionDirective() argument
200 auto P = ModuleIncludes.insert(std::make_pair(HashLoc, Imported)); in InclusionDirective()
204 LastInclusionLocation = HashLoc; in InclusionDirective()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DParsedASTTests.cpp356 Inclusion(const SourceManager &SM, SourceLocation HashLoc, in TEST()
359 : HashOffset(SM.getDecomposedLoc(HashLoc).second), IncTok(IncludeTok), in TEST()
376 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, in TEST()
381 Includes.emplace_back(SM, HashLoc, IncludeTok, FileName, IsAngled, in TEST()
/external/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp66 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
173 void InclusionRewriter::InclusionDirective(SourceLocation HashLoc, in InclusionDirective() argument
187 std::make_pair(HashLoc.getRawEncoding(), Imported)); in InclusionDirective()
191 LastInclusionLocation = HashLoc; in InclusionDirective()
/external/llvm-project/clang-tools-extra/clangd/index/
DIndexAction.cpp86 void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, in InclusionDirective()
96 auto IncludingURI = toURI(SM.getFileEntryForID(SM.getFileID(HashLoc))); in InclusionDirective()

12