/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | ElseAfterReturnCheck.cpp | 118 const Stmt *Else, SourceLocation ElseLoc) { in removeElseAndBrackets() argument 128 Diag << tooling::fixit::createRemoval(ElseLoc); in removeElseAndBrackets() 140 SourceLocation ElseExpandedLoc = Remap(ElseLoc); in removeElseAndBrackets() 145 ElseExpandedLoc.getLocWithOffset(TokLen(ElseLoc) + 1), EndLoc), in removeElseAndBrackets() 245 SourceLocation ElseLoc = If->getElseLoc(); in check() local 249 ElseLoc)) in check() 258 diag(ElseLoc, WarningMessage) << ControlFlowInterruptor; in check() 269 DiagnosticBuilder Diag = diag(ElseLoc, WarningMessage) in check() 271 << SourceRange(ElseLoc); in check() 291 removeElseAndBrackets(Diag, *Result.Context, Else, ElseLoc); in check() [all …]
|
D | MisleadingIndentationCheck.cpp | 37 SourceLocation ElseLoc = If->getElseLoc(); in danglingElseCheck() local 39 if (IfLoc.isMacroID() || ElseLoc.isMacroID()) in danglingElseCheck() 43 SM.getExpansionLineNumber(ElseLoc)) in danglingElseCheck() 52 SM.getExpansionColumnNumber(ElseLoc)) in danglingElseCheck() 53 diag(ElseLoc, "different indentation for 'if' and corresponding 'else'"); in danglingElseCheck()
|
/external/llvm-project/clang/include/clang/Lex/ |
D | Preprocessor.h | 440 SourceLocation ElseLoc; member 444 SourceLocation ElseLoc) in PreambleSkipInfo() 447 ElseLoc(ElseLoc) {} in PreambleSkipInfo() 2114 SourceLocation ElseLoc = SourceLocation());
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseStmt.cpp | 1427 SourceLocation ElseLoc; in ParseIfStatement() local 1435 ElseLoc = ConsumeToken(); in ParseIfStatement() 1450 MisleadingIndentationChecker MIChecker(*this, MSK_else, ElseLoc); in ParseIfStatement() 1490 RParen, ThenStmt.get(), ElseLoc, ElseStmt.get()); in ParseIfStatement()
|
/external/clang/lib/Parse/ |
D | ParseStmt.cpp | 1191 SourceLocation ElseLoc; in ParseIfStatement() local 1199 ElseLoc = ConsumeToken(); in ParseIfStatement() 1248 ThenStmt.get(), ElseLoc, ElseStmt.get()); in ParseIfStatement()
|
/external/clang/lib/Lex/ |
D | PPDirectives.cpp | 369 SourceLocation ElseLoc) { in SkipExcludedConditionalBlock() argument 575 SourceLocation BeginLoc = ElseLoc.isValid() ? ElseLoc : IfTokenLoc; in SkipExcludedConditionalBlock()
|
/external/clang/include/clang/AST/ |
D | Stmt.h | 886 SourceLocation ElseLoc; variable 930 SourceLocation getElseLoc() const { return ElseLoc; } in getElseLoc() 931 void setElseLoc(SourceLocation L) { ElseLoc = L; } in setElseLoc()
|
/external/clang/lib/Sema/ |
D | SemaStmt.cpp | 509 Stmt *thenStmt, SourceLocation ElseLoc, in ActOnIfStmt() argument 528 return BuildIfStmt(IfLoc, IsConstexpr, InitStmt, Cond, thenStmt, ElseLoc, in ActOnIfStmt() 534 Stmt *thenStmt, SourceLocation ElseLoc, in BuildIfStmt() argument 547 Cond.get().second, thenStmt, ElseLoc, elseStmt); in BuildIfStmt()
|
D | TreeTransform.h | 1178 SourceLocation ElseLoc, Stmt *Else) { in RebuildIfStmt() argument 1180 ElseLoc, Else); in RebuildIfStmt()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaStmt.cpp | 583 Stmt *thenStmt, SourceLocation ElseLoc, in ActOnIfStmt() argument 631 thenStmt, ElseLoc, elseStmt); in ActOnIfStmt() 637 Stmt *thenStmt, SourceLocation ElseLoc, in BuildIfStmt() argument 647 ElseLoc, elseStmt); in BuildIfStmt()
|
D | TreeTransform.h | 1325 SourceLocation ElseLoc, Stmt *Else) { in RebuildIfStmt() argument 1327 RParenLoc, Then, ElseLoc, Else); in RebuildIfStmt()
|
/external/llvm-project/clang/lib/Lex/ |
D | PPDirectives.cpp | 419 SourceLocation ElseLoc) { in SkipExcludedConditionalBlock() argument 456 HashTokenLoc, IfTokenLoc, FoundNonSkipPortion, FoundElse, ElseLoc); in SkipExcludedConditionalBlock()
|
D | Preprocessor.cpp | 683 PreambleConditionalStack.SkipInfo->ElseLoc); in replayPreambleConditionalStack()
|
/external/clang/include/clang/Lex/ |
D | Preprocessor.h | 1760 SourceLocation ElseLoc = SourceLocation());
|
/external/clang/lib/AST/ |
D | Stmt.cpp | 769 : Stmt(IfStmtClass), IfLoc(IL), ElseLoc(EL) { in IfStmt()
|
/external/llvm-project/clang/include/clang/AST/ |
D | Stmt.h | 2071 void setElseLoc(SourceLocation ElseLoc) { in setElseLoc() argument 2074 *getTrailingObjects<SourceLocation>() = ElseLoc; in setElseLoc()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 3402 SourceLocation ElseLoc, Stmt *ElseVal); 3406 SourceLocation ElseLoc, Stmt *ElseVal);
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Sema.h | 4524 Stmt *ThenVal, SourceLocation ElseLoc, Stmt *ElseVal); 4528 Stmt *ThenVal, SourceLocation ElseLoc, Stmt *ElseVal);
|
/external/llvm-project/clang/lib/Serialization/ |
D | ASTReader.cpp | 3333 SourceLocation ElseLoc = ReadSourceLocation(F, Record, Idx); in ReadASTBlock() local 3335 FoundElse, ElseLoc); in ReadASTBlock()
|
D | ASTWriter.cpp | 2168 AddSourceLocation(SkipInfo->ElseLoc, Record); in WritePreprocessor()
|