Home
last modified time | relevance | path

Searched refs:isFileID (Results 1 – 25 of 78) sorted by relevance

1234

/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseNullptrCheck.cpp100 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()
DConcatNestedNamespacesCheck.cpp21 return Loc1.isFileID() && Loc2.isFileID() && in locationsInSameFile()
/external/llvm-project/clang/lib/Tooling/Syntax/
DTokens.cpp72 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/
DSourceManagerTest.cpp111 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/
DUSRFinder.cpp50 if (!Start.isValid() || !Start.isFileID() || !End.isValid() || in visitSymbolOccurrence()
51 !End.isFileID() || !isPointWithin(Start, End)) in visitSymbolOccurrence()
/external/clang/lib/Lex/
DTokenLexer.cpp52 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()
DMacroInfo.cpp48 assert((macroStart.isFileID() || firstToken.is(tok::comment)) && in getDefinitionLengthSlow()
50 assert((macroEnd.isFileID() || lastToken.is(tok::comment)) && in getDefinitionLengthSlow()
DLexer.cpp452 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/
DExpandMacro.cpp56 assert(T.location().isFileID()); in REGISTER_TWEAK()
69 assert(Cursor.isFileID()); in findIdentifierUnderCursor()
/external/llvm-project/clang/lib/Lex/
DTokenLexer.cpp65 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()
DMacroInfo.cpp50 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/
DSourceManagerTest.cpp94 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/
DSourceManager.cpp901 } 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 …]
DSourceLocation.cpp44 if (isFileID()) { in print()
/external/llvm-project/clang/lib/Basic/
DSourceManager.cpp935 } 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 …]
DSourceLocation.cpp60 if (isFileID()) { in print()
100 if (Loc.isFileID()) { in PrintDifference()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DNamespaceCommentCheck.cpp44 return Loc1.isFileID() && Loc2.isFileID() && in locationsInSameFile()
/external/llvm-project/clang/include/clang/Basic/
DSourceLocation.h102 bool isFileID() const { return (ID & MacroIDBit) == 0; }
178 return Start.isValid() && Start.isFileID() && End.isValid() &&
179 End.isFileID();
DJsonSupport.h90 if (Loc.isFileID()) {
/external/llvm-project/clang/unittests/Tooling/Syntax/
DTreeTestBase.cpp165 if (Toks.front().location().isFileID() && Toks.back().location().isFileID() && in nodeByRange()
/external/llvm-project/clang/lib/Tooling/Core/
DDiagnostic.cpp28 assert(Loc.isValid() && Loc.isFileID()); in DiagnosticMessage()
/external/clang/include/clang/Basic/
DSourceManager.h1059 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/
DVariadicMacroSupport.h224 assert(VAOptLoc.isFileID() && "Must not come from a macro expansion"); in sawVAOptFollowedByOpeningParens()
/external/clang/lib/Edit/
DCommit.cpp22 assert(Loc.isFileID()); in getFileLocation()
34 assert(Loc.isFileID()); in getInsertFromRange()
/external/llvm-project/clang/lib/Edit/
DCommit.cpp27 assert(Loc.isFileID()); in getFileLocation()
39 assert(Loc.isFileID()); in getInsertFromRange()

1234