summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2020-01-13 15:19:56 -0500
committerPuyan Lotfi <puyan@puyan.org>2020-01-13 16:04:27 -0500
commitb7526cc21ce55c8b53250df3d659fbdae3f894a7 (patch)
tree46dc4135e66c7382f7550a1d855a4817b47c258a /clang/lib/Frontend
parentc1b13a1b17719aebace1b3be7a6ac7f90b1901a6 (diff)
downloadbcm5719-llvm-b7526cc21ce55c8b53250df3d659fbdae3f894a7.tar.gz
bcm5719-llvm-b7526cc21ce55c8b53250df3d659fbdae3f894a7.zip
[NFC][clang][IFS] Adding braces to if-statement as prep for D71301.
Just trying to make https://reviews.llvm.org/D71301 look cleaner.
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp b/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
index 3b0a5668af9..e7d6fee5ac6 100644
--- 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) &&
OpenPOWER on IntegriCloud