projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30436a1
)
Make FunctionDecl::isDefined non-virtual, NFC
author
Reid Kleckner
<rnk@google.com>
Tue, 31 Mar 2020 16:01:06 +0000
(09:01 -0700)
committer
Reid Kleckner
<rnk@google.com>
Tue, 31 Mar 2020 17:12:05 +0000
(10:12 -0700)
This convenience wrapper was made virtual when it was introduced. I see
no overrides and no reason for it to be virtual, so make it non-virtual.
clang/include/clang/AST/Decl.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/AST/Decl.h
b/clang/include/clang/AST/Decl.h
index
841e24e
..
2af1189
100644
(file)
--- a/
clang/include/clang/AST/Decl.h
+++ b/
clang/include/clang/AST/Decl.h
@@
-2030,7
+2030,7
@@
public:
/// declaration to the declaration that is a definition (if there is one).
bool isDefined(const FunctionDecl *&Definition) const;
-
virtual
bool isDefined() const {
+ bool isDefined() const {
const FunctionDecl* Definition;
return isDefined(Definition);
}