forked from OSchip/llvm-project
clang-tidy/misc/UseOverride.cpp: Appease targeting msvc.
With IsLateTemplateParsed, FunctionDecl::doesThisDeclarationHaveABody() returns True regardless of Body. llvm-svn: 208985
This commit is contained in:
parent
9750ce7ebd
commit
2dd94635d4
|
@ -95,7 +95,7 @@ void UseOverride::check(const MatchFinder::MatchResult &Result) {
|
|||
}
|
||||
}
|
||||
|
||||
if (InsertLoc.isInvalid() && Method->doesThisDeclarationHaveABody()) {
|
||||
if (InsertLoc.isInvalid() && Method->getBody()) {
|
||||
InsertLoc = Method->getBody()->getLocStart();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue