clang-tidy: Only add 'override' before inlined bodies.

llvm-svn: 209505
This commit is contained in:
Daniel Jasper
2014-05-23 08:52:10 +00:00
parent 84242dc774
commit 39f9f726bc
2 changed files with 5 additions and 1 deletions

View File

@@ -96,7 +96,8 @@ void UseOverride::check(const MatchFinder::MatchResult &Result) {
}
}
if (InsertLoc.isInvalid() && Method->getBody()) {
if (InsertLoc.isInvalid() && Method->doesThisDeclarationHaveABody() &&
Method->getBody()) {
InsertLoc = Method->getBody()->getLocStart();
}

View File

@@ -59,6 +59,9 @@ public:
void SimpleCases::i() {}
// CHECK: {{^void SimpleCases::i\(\) {}}}
SimpleCases::~SimpleCases() {}
// CHECK: {{^SimpleCases::~SimpleCases\(\) {}}}
struct InlineDefinitions : public Base {
public:
virtual ~InlineDefinitions() {}