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:
c1b13a1
)
[NFC][clang][IFS] Adding braces to if-statement as prep for D71301.
author
Puyan Lotfi
<puyan@puyan.org>
Mon, 13 Jan 2020 20:19:56 +0000
(15:19 -0500)
committer
Puyan Lotfi
<puyan@puyan.org>
Mon, 13 Jan 2020 21:04:27 +0000
(16:04 -0500)
Just trying to make https://reviews.llvm.org/D71301 look cleaner.
clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
b/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
index 3b0a5668af940c6d00cd2e6d410f438df35e50f0..e7d6fee5ac67efa2191613aaf08168d7d3f53c7a 100644
(file)
--- a/
clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
+++ b/
clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
@@
-52,11
+52,12
@@
class InterfaceStubFunctionsConsumer : public ASTConsumer {
if (!isVisible(ND))
return true;
- if (const VarDecl *VD = dyn_cast<VarDecl>(ND))
+ if (const VarDecl *VD = dyn_cast<VarDecl>(ND))
{
if ((VD->getStorageClass() == StorageClass::SC_Extern) ||
(VD->getStorageClass() == StorageClass::SC_Static &&
VD->getParentFunctionOrMethod() == nullptr))
return true;
+ }
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
if (FD->isInlined() && !isa<CXXMethodDecl>(FD) &&