diff options
| author | Stephen Kelly <steveire@gmail.com> | 2018-08-09 22:43:02 +0000 |
|---|---|---|
| committer | Stephen Kelly <steveire@gmail.com> | 2018-08-09 22:43:02 +0000 |
| commit | c09197e0863d2b50439a79869a10ad4c893fb4d1 (patch) | |
| tree | d644ff02a75cf80fd5723f2ee73d045c09e360bf /clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp | |
| parent | 43465bf3fd6cca715187ee7286c881cb210fc3c4 (diff) | |
| download | bcm5719-llvm-c09197e0863d2b50439a79869a10ad4c893fb4d1.tar.gz bcm5719-llvm-c09197e0863d2b50439a79869a10ad4c893fb4d1.zip | |
Port getLocEnd -> getEndLoc
Subscribers: nemanjai, ioeric, kbarton, cfe-commits
Differential Revision: https://reviews.llvm.org/D50355
llvm-svn: 339401
Diffstat (limited to 'clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp b/clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp index a29e68a368d..5f5294c2c22 100644 --- a/clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp +++ b/clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp @@ -177,9 +177,9 @@ BracesAroundStatementsCheck::findRParenLoc(const IfOrWhileStmt *S, if (S->getBeginLoc().isMacroID()) return SourceLocation(); - SourceLocation CondEndLoc = S->getCond()->getLocEnd(); + SourceLocation CondEndLoc = S->getCond()->getEndLoc(); if (const DeclStmt *CondVar = S->getConditionVariableDeclStmt()) - CondEndLoc = CondVar->getLocEnd(); + CondEndLoc = CondVar->getEndLoc(); if (!CondEndLoc.isValid()) { return SourceLocation(); |

