Home
last modified time | relevance | path

Searched refs:AssertLoc (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DStaticAssertCheck.cpp112 SourceLocation AssertLoc = SM.getImmediateMacroCallerLoc(AssertExpansionLoc); in check() local
116 if (AssertLoc.isValid() && !AssertLoc.isMacroID() && in check()
117 (LastParenLoc = getLastParenLoc(ASTCtx, AssertLoc)).isValid()) { in check()
119 FixItHint::CreateReplacement(SourceRange(AssertLoc), "static_assert")); in check()
133 diag(AssertLoc, "found assert() that could be replaced by static_assert()") in check()
138 SourceLocation AssertLoc) { in getLastParenLoc() argument
143 SM.getBufferOrNone(SM.getFileID(AssertLoc)); in getLastParenLoc()
147 const char *BufferPos = SM.getCharacterData(AssertLoc); in getLastParenLoc()
150 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(AssertLoc)), Opts, in getLastParenLoc()
H A DStaticAssertCheck.h36 SourceLocation AssertLoc);