Home
last modified time | relevance | path

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

123

/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DRedundantMemberInitCheck.cpp65 diag(Init->getSourceLocation(), "initializer for member %0 is redundant") in check()
69 diag(Init->getSourceLocation(), in check()
/external/clang/include/clang/Lex/
DLexer.h217 SourceLocation getSourceLocation(const char *Loc, unsigned TokLen = 1) const;
221 SourceLocation getSourceLocation() override { in getSourceLocation() function
222 return getSourceLocation(BufferPtr); in getSourceLocation()
506 Result.setLocation(getSourceLocation(BufferPtr, TokLen)); in FormTokenWithChars()
DPTHLexer.h96 SourceLocation getSourceLocation() override;
DPreprocessorLexer.h89 virtual SourceLocation getSourceLocation() = 0;
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DCopyConstructorInitCheck.cpp82 if (Init->getSourceLocation().isMacroID() || in check()
107 FixItLoc = (*Ctor->init_begin())->getSourceLocation(); in check()
/external/llvm-project/clang/include/clang/Lex/
DLexer.h261 SourceLocation getSourceLocation(const char *Loc, unsigned TokLen = 1) const;
265 SourceLocation getSourceLocation() override { in getSourceLocation() function
266 return getSourceLocation(BufferPtr); in getSourceLocation()
590 Result.setLocation(getSourceLocation(BufferPtr, TokLen)); in FormTokenWithChars()
DPreprocessorLexer.h84 virtual SourceLocation getSourceLocation() = 0;
/external/llvm-project/clang/include/clang/Tooling/Refactoring/
DRecursiveSymbolVisitor.h53 if (!visit(FD, Initializer->getSourceLocation(), in VisitCXXConstructorDecl()
54 Lexer::getLocForEndOfToken(Initializer->getSourceLocation(), in VisitCXXConstructorDecl()
/external/llvm-project/clang/unittests/Tooling/RecursiveASTVisitorTests/
DImplicitCtorInitializer.cpp26 Match("initializer", Init->getSourceLocation()); in TraverseConstructorInitializer()
/external/llvm-project/compiler-rt/lib/ubsan/
Dubsan_monitor.cpp65 SourceLocation SL = CurrentUBR->Loc.getSourceLocation(); in __ubsan_get_current_report_data()
Dubsan_diag.cpp87 SourceLocation SLoc = Loc.getSourceLocation(); in MaybeReportErrorSummary()
150 SourceLocation SLoc = Loc.getSourceLocation(); in RenderLocation()
Dubsan_diag.h81 SourceLocation getSourceLocation() const { in getSourceLocation() function
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DMoveConstructorInitCheck.cpp81 diag(Initializer->getSourceLocation(), in check()
/external/llvm-project/clang/lib/AST/
DCommentParser.cpp67 SourceLocation getSourceLocation() const { in getSourceLocation() function in clang::comments::TextTokenRetokenizer
162 SourceLocation Loc = getSourceLocation(); in lexWord()
195 SourceLocation Loc = getSourceLocation(); in lexDelimitedSeq()
240 formTokenWithChars(PartialTok, getSourceLocation(), in putBackLeftoverTokens()
DCommentLexer.cpp282 Result.setLocation(getSourceLocation(BufferPtr)); in formTokenWithChars()
410 SourceLocation Loc = getSourceLocation(BufferPtr); in lexCommentText()
411 SourceLocation EndLoc = getSourceLocation(TokenPtr); in lexCommentText()
/external/clang/lib/AST/
DCommentParser.cpp68 SourceLocation getSourceLocation() const { in getSourceLocation() function in clang::comments::TextTokenRetokenizer
163 SourceLocation Loc = getSourceLocation(); in lexWord()
196 SourceLocation Loc = getSourceLocation(); in lexDelimitedSeq()
241 formTokenWithChars(PartialTok, getSourceLocation(), in putBackLeftoverTokens()
DCommentLexer.cpp283 Result.setLocation(getSourceLocation(BufferPtr)); in formTokenWithChars()
380 SourceLocation Loc = getSourceLocation(BufferPtr); in lexCommentText()
382 getSourceLocation(TokenPtr)); in lexCommentText()
/external/llvm-project/clang/lib/Lex/
DLexer.cpp1129 SourceLocation Lexer::getSourceLocation(const char *Loc, in getSourceLocation() function in Lexer
1149 return PP->Diag(getSourceLocation(Loc), DiagID); in Diag()
1473 return CharSourceRange::getCharRange(L.getSourceLocation(Begin), in makeCharRange()
1474 L.getSourceLocation(End)); in makeCharRange()
1841 << FixItHint::CreateInsertion(getSourceLocation(CurPtr), " "); in LexUDSuffix()
1888 << FixItHint::CreateInsertion(getSourceLocation(CurPtr), " "); in LexUDSuffix()
2256 Handler->HandleEmptyline(SourceRange(getSourceLocation(NewLinePtr + 1), in SkipWhitespace()
2257 getSourceLocation(lastNewLine))); in SkipWhitespace()
2377 PP->HandleComment(Result, SourceRange(getSourceLocation(BufferPtr), in SkipLineComment()
2378 getSourceLocation(CurPtr)))) { in SkipLineComment()
[all …]
/external/clang/lib/Lex/
DLexer.cpp550 SourceLocation StartLoc = TheLexer.getSourceLocation(); in ComputePreamble()
1070 SourceLocation Lexer::getSourceLocation(const char *Loc, in getSourceLocation() function in Lexer
1090 return PP->Diag(getSourceLocation(Loc), DiagID); in Diag()
1420 return CharSourceRange::getCharRange(L.getSourceLocation(Begin), in makeCharRange()
1421 L.getSourceLocation(End)); in makeCharRange()
1676 << FixItHint::CreateInsertion(getSourceLocation(CurPtr), " "); in LexUDSuffix()
1723 << FixItHint::CreateInsertion(getSourceLocation(CurPtr), " "); in LexUDSuffix()
2147 PP->HandleComment(Result, SourceRange(getSourceLocation(BufferPtr), in SkipLineComment()
2148 getSourceLocation(CurPtr)))) { in SkipLineComment()
2419 PP->HandleComment(Result, SourceRange(getSourceLocation(BufferPtr), in SkipBlockComment()
[all …]
DPPDirectives.cpp541 const SourceLocation CondBegin = CurPPLexer->getSourceLocation(); in SkipExcludedConditionalBlock()
550 const SourceLocation CondEnd = CurPPLexer->getSourceLocation(); in SkipExcludedConditionalBlock()
1198 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), in HandleLineDirective()
1352 Callbacks->FileChanged(CurPPLexer->getSourceLocation(), Reason, FileKind); in HandleDigitDirective()
2654 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation(); in HandleIfDirective()
2656 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation(); in HandleIfDirective()
2748 const SourceLocation ConditionalBegin = CurPPLexer->getSourceLocation(); in HandleElifDirective()
2750 const SourceLocation ConditionalEnd = CurPPLexer->getSourceLocation(); in HandleElifDirective()
/external/llvm-project/clang/lib/Format/
DFormatTokenLexer.cpp569 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in tryParseJSRegexLiteral()
629 ? Lex->getSourceLocation(Offset + 1) in handleCSharpVerbatimAndInterpolatedStrings()
696 ? Lex->getSourceLocation(Offset + 1) in handleTemplateStrings()
717 ? Lex->getSourceLocation(CommentBegin + Len) in tryParsePythonComment()
932 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in getNextToken()
/external/compiler-rt/lib/ubsan/
Dubsan_diag.cc75 SourceLocation SLoc = Loc.getSourceLocation(); in MaybeReportErrorSummary()
140 SourceLocation SLoc = Loc.getSourceLocation(); in RenderLocation()
Dubsan_diag.h82 SourceLocation getSourceLocation() const { in getSourceLocation() function
/external/llvm-project/lld/COFF/
DSymbolTable.cpp569 static std::string getSourceLocation(InputFile *file, SectionChunk *sc, in getSourceLocation() function
596 os << getSourceLocation(d->getFile(), d->getChunk(), d->getValue(), in reportDuplicate()
599 os << getSourceLocation(existing->getFile(), nullptr, 0, ""); in reportDuplicate()
601 os << getSourceLocation(newFile, newSc, newSectionOffset, in reportDuplicate()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DPassByValueCheck.cpp218 Result.SourceManager->getFileID(Initializer->getSourceLocation()), in check()

123