[clang-tools-extra] 25afe91 - Fix Wparentheses warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 17 03:26:47 PST 2020
Author: Simon Pilgrim
Date: 2020-01-17T11:26:25Z
New Revision: 25afe91fd1b8e26258471007a24f856a0d4b14db
URL: https://github.com/llvm/llvm-project/commit/25afe91fd1b8e26258471007a24f856a0d4b14db
DIFF: https://github.com/llvm/llvm-project/commit/25afe91fd1b8e26258471007a24f856a0d4b14db.diff
LOG: Fix Wparentheses warning. NFCI.
Added:
Modified:
clang-tools-extra/clang-tidy/readability/QualifiedAutoCheck.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/readability/QualifiedAutoCheck.cpp b/clang-tools-extra/clang-tidy/readability/QualifiedAutoCheck.cpp
index 969927fedc3d..1d0b85b9c4ce 100644
--- a/clang-tools-extra/clang-tidy/readability/QualifiedAutoCheck.cpp
+++ b/clang-tools-extra/clang-tidy/readability/QualifiedAutoCheck.cpp
@@ -34,8 +34,9 @@ llvm::Optional<Token> findQualToken(const VarDecl *Decl, Qualifier Qual,
// sure that we have a consistent `CharSourceRange`, located entirely in the
// source file.
- assert(Qual == Qualifier::Const || Qual == Qualifier::Volatile ||
- Qual == Qualifier::Restrict && "Invalid Qualifier");
+ assert((Qual == Qualifier::Const || Qual == Qualifier::Volatile ||
+ Qual == Qualifier::Restrict) &&
+ "Invalid Qualifier");
SourceLocation BeginLoc = Decl->getQualifierLoc().getBeginLoc();
if (BeginLoc.isInvalid())
More information about the cfe-commits
mailing list