[clang-tools-extra] r208985 - clang-tidy/misc/UseOverride.cpp: Appease targeting msvc.
NAKAMURA Takumi
geek4civic at gmail.com
Fri May 16 06:37:08 PDT 2014
Author: chapuni
Date: Fri May 16 08:37:08 2014
New Revision: 208985
URL: http://llvm.org/viewvc/llvm-project?rev=208985&view=rev
Log:
clang-tidy/misc/UseOverride.cpp: Appease targeting msvc.
With IsLateTemplateParsed, FunctionDecl::doesThisDeclarationHaveABody() returns True regardless of Body.
Modified:
clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp
Modified: clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp?rev=208985&r1=208984&r2=208985&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp Fri May 16 08:37:08 2014
@@ -95,7 +95,7 @@ void UseOverride::check(const MatchFinde
}
}
- if (InsertLoc.isInvalid() && Method->doesThisDeclarationHaveABody()) {
+ if (InsertLoc.isInvalid() && Method->getBody()) {
InsertLoc = Method->getBody()->getLocStart();
}
More information about the cfe-commits
mailing list