/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseNullptrCheck.cpp | 100 assert(CastLoc.isFileID()); in MacroArgUsageVisitor() 325 if (!MacroLoc.isFileID()) in getMacroAndArgLocations() 336 if (ArgLoc.isFileID()) in getMacroAndArgLocations() 364 if (TestLoc.isFileID()) { in expandsFrom() 378 if (Loc.isFileID()) { in expandsFrom() 389 if (MacroLoc.isFileID() && MacroLoc == TestMacroLoc) { in expandsFrom() 395 if (Loc.isFileID()) { in expandsFrom() 417 assert(MacroLoc.isFileID()); in findContainingAncestor()
|
D | ConcatNestedNamespacesCheck.cpp | 21 return Loc1.isFileID() && Loc2.isFileID() && in locationsInSameFile()
|
/external/llvm-project/clang/lib/Tooling/Syntax/ |
D | Tokens.cpp | 72 while (!FirstLoc.isFileID() && !LastLoc.isFileID()) { in findCommonRangeForMacroArgs() 120 assert(location().isFileID() && "must be a spelled token"); in range() 151 assert(BeginLoc.isFileID()); in FileRange() 159 assert(BeginLoc.isFileID()); in FileRange() 161 assert(EndLoc.isFileID()); in FileRange() 313 assert(Loc.isFileID()); in spelledTokenAt() 396 assert(Spelled.front().location().isFileID() && "not a spelled token"); in fileForSpelled() 447 assert(Loc.isFileID()); in spelledTokensTouching() 565 if (!Range.getEnd().isFileID()) in MacroExpands() 576 if (!Range.getBegin().isFileID()) { in MacroExpands() [all …]
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 111 ASSERT_TRUE(macroExpStartLoc.isFileID()); in TEST_F() 112 ASSERT_TRUE(macroExpEndLoc.isFileID()); in TEST_F() 237 EXPECT_TRUE(defLoc.isFileID()); in TEST_F() 238 EXPECT_TRUE(loc1.isFileID()); in TEST_F() 243 EXPECT_TRUE(defLoc2.isFileID()); in TEST_F()
|
/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
D | USRFinder.cpp | 50 if (!Start.isValid() || !Start.isFileID() || !End.isValid() || in visitSymbolOccurrence() 51 !End.isFileID() || !isPointWithin(Start, End)) in visitSymbolOccurrence()
|
/external/clang/lib/Lex/ |
D | TokenLexer.cpp | 52 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init() 596 assert(ResultTokLoc.isFileID() && in PasteTokens() 678 if (StartLoc.isFileID()) in PasteTokens() 680 if (EndLoc.isFileID()) in PasteTokens() 745 assert(loc.isValid() && loc.isFileID()); in getExpansionLocForMacroDefLoc() 787 if (CurLoc.isFileID() != NextLoc.isFileID()) in updateConsecutiveMacroArgTokens()
|
D | MacroInfo.cpp | 48 assert((macroStart.isFileID() || firstToken.is(tok::comment)) && in getDefinitionLengthSlow() 50 assert((macroEnd.isFileID() || lastToken.is(tok::comment)) && in getDefinitionLengthSlow()
|
D | Lexer.cpp | 452 assert(Loc.isFileID()); in getBeginningOfFileToken() 512 if (Loc.isFileID()) in GetBeginningOfToken() 793 if (expansionLoc.isFileID()) { in isAtStartOfMacroExpansion() 821 if (expansionLoc.isFileID()) { in isAtEndOfMacroExpansion() 836 assert(Begin.isFileID() && End.isFileID()); in makeRangeFromFileLocs() 866 if (Begin.isFileID() && End.isFileID()) in makeFileCharRange() 869 if (Begin.isMacroID() && End.isFileID()) { in makeFileCharRange() 876 if (Begin.isFileID() && End.isMacroID()) { in makeFileCharRange() 979 if (SpellLoc.isFileID()) in getImmediateMacroName() 1078 if (FileLoc.isFileID()) in getSourceLocation()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | ExpandMacro.cpp | 56 assert(T.location().isFileID()); in REGISTER_TWEAK() 69 assert(Cursor.isFileID()); in findIdentifierUnderCursor()
|
/external/llvm-project/clang/lib/Lex/ |
D | TokenLexer.cpp | 65 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init() 819 assert(ResultTokLoc.isFileID() && in pasteTokens() 901 if (StartLoc.isFileID()) in pasteTokens() 903 if (EndLoc.isFileID()) in pasteTokens() 968 assert(loc.isValid() && loc.isFileID()); in getExpansionLocForMacroDefLoc() 1010 if (CurLoc.isFileID() != NextLoc.isFileID()) in updateConsecutiveMacroArgTokens()
|
D | MacroInfo.cpp | 50 assert((macroStart.isFileID() || firstToken.is(tok::comment)) && in getDefinitionLengthSlow() 52 assert((macroEnd.isFileID() || lastToken.is(tok::comment)) && in getDefinitionLengthSlow()
|
/external/llvm-project/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 94 ASSERT_TRUE(macroExpStartLoc.isFileID()); in TEST_F() 95 ASSERT_TRUE(macroExpEndLoc.isFileID()); in TEST_F() 337 EXPECT_TRUE(defLoc.isFileID()); in TEST_F() 338 EXPECT_TRUE(loc1.isFileID()); in TEST_F() 343 EXPECT_TRUE(defLoc2.isFileID()); in TEST_F()
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 901 } while (!Loc.isFileID()); in getExpansionLocSlowCase() 911 } while (!Loc.isFileID()); in getSpellingLocSlowCase() 921 } while (!Loc.isFileID()); in getFileLocSlowCase() 939 } while (!Loc.isFileID()); in getDecomposedExpansionLocSlowCase() 957 } while (!Loc.isFileID()); in getDecomposedSpellingLocSlowCase() 967 if (Loc.isFileID()) return Loc; in getImmediateSpellingLoc() 987 if (Loc.isFileID()) return std::make_pair(Loc, Loc); in getExpansionRange() 994 while (!Res.first.isFileID()) in getExpansionRange() 996 while (!Res.second.isFileID()) in getExpansionRange() 1829 if (ExpInfo.getExpansionLocStart().isFileID()) { in computeMacroArgsCache() [all …]
|
D | SourceLocation.cpp | 44 if (isFileID()) { in print()
|
/external/llvm-project/clang/lib/Basic/ |
D | SourceManager.cpp | 935 } while (!Loc.isFileID()); in getExpansionLocSlowCase() 945 } while (!Loc.isFileID()); in getSpellingLocSlowCase() 955 } while (!Loc.isFileID()); in getFileLocSlowCase() 973 } while (!Loc.isFileID()); in getDecomposedExpansionLocSlowCase() 991 } while (!Loc.isFileID()); in getDecomposedSpellingLocSlowCase() 1001 if (Loc.isFileID()) return Loc; in getImmediateSpellingLoc() 1032 if (Loc.isFileID()) in getExpansionRange() 1039 while (!Res.getBegin().isFileID()) in getExpansionRange() 1041 while (!Res.getEnd().isFileID()) { in getExpansionRange() 1754 if (ExpInfo.getExpansionLocStart().isFileID()) { in computeMacroArgsCache() [all …]
|
D | SourceLocation.cpp | 60 if (isFileID()) { in print() 100 if (Loc.isFileID()) { in PrintDifference()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | NamespaceCommentCheck.cpp | 44 return Loc1.isFileID() && Loc2.isFileID() && in locationsInSameFile()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | SourceLocation.h | 102 bool isFileID() const { return (ID & MacroIDBit) == 0; } 178 return Start.isValid() && Start.isFileID() && End.isValid() && 179 End.isFileID();
|
D | JsonSupport.h | 90 if (Loc.isFileID()) {
|
/external/llvm-project/clang/unittests/Tooling/Syntax/ |
D | TreeTestBase.cpp | 165 if (Toks.front().location().isFileID() && Toks.back().location().isFileID() && in nodeByRange()
|
/external/llvm-project/clang/lib/Tooling/Core/ |
D | Diagnostic.cpp | 28 assert(Loc.isValid() && Loc.isFileID()); in DiagnosticMessage()
|
/external/clang/include/clang/Basic/ |
D | SourceManager.h | 1059 if (Loc.isFileID()) return Loc; in getExpansionLoc() 1067 if (Loc.isFileID()) return Loc; in getFileLoc() 1098 if (Loc.isFileID()) return Loc; in getSpellingLoc() 1136 if (Loc.isFileID()) in getDecomposedExpansionLoc() 1155 if (Loc.isFileID()) in getDecomposedSpellingLoc()
|
/external/llvm-project/clang/include/clang/Lex/ |
D | VariadicMacroSupport.h | 224 assert(VAOptLoc.isFileID() && "Must not come from a macro expansion"); in sawVAOptFollowedByOpeningParens()
|
/external/clang/lib/Edit/ |
D | Commit.cpp | 22 assert(Loc.isFileID()); in getFileLocation() 34 assert(Loc.isFileID()); in getInsertFromRange()
|
/external/llvm-project/clang/lib/Edit/ |
D | Commit.cpp | 27 assert(Loc.isFileID()); in getFileLocation() 39 assert(Loc.isFileID()); in getInsertFromRange()
|