Home
last modified time | relevance | path

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

/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DStaticAssertCheck.cpp119 SourceLocation AssertLoc = SM.getImmediateMacroCallerLoc(AssertExpansionLoc); in check() local
123 if (AssertLoc.isValid() && !AssertLoc.isMacroID() && in check()
124 (LastParenLoc = getLastParenLoc(ASTCtx, AssertLoc)).isValid()) { in check()
126 FixItHint::CreateReplacement(SourceRange(AssertLoc), "static_assert")); in check()
140 diag(AssertLoc, "found assert() that could be replaced by static_assert()") in check()
145 SourceLocation AssertLoc) { in getLastParenLoc() argument
150 SM.getBufferOrNone(SM.getFileID(AssertLoc)); in getLastParenLoc()
154 const char *BufferPos = SM.getCharacterData(AssertLoc); in getLastParenLoc()
157 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(AssertLoc)), Opts, in getLastParenLoc()
H A DStaticAssertCheck.h34 SourceLocation AssertLoc);