[clang] 0b2d50c - [Clang][NFC] Remove trailing whitespace from SemaExpr.cpp (#102001)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 08:15:35 PDT 2024
Author: Krystian Stasiowski
Date: 2024-08-05T11:15:31-04:00
New Revision: 0b2d50c08d2eadf32f685fcd5b5468bc2ec7a16d
URL: https://github.com/llvm/llvm-project/commit/0b2d50c08d2eadf32f685fcd5b5468bc2ec7a16d
DIFF: https://github.com/llvm/llvm-project/commit/0b2d50c08d2eadf32f685fcd5b5468bc2ec7a16d.diff
LOG: [Clang][NFC] Remove trailing whitespace from SemaExpr.cpp (#102001)
This patch removes trailing whitespace from `SemaExpr.cpp` added by
#70307
Added:
Modified:
clang/lib/Sema/SemaExpr.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 74c0e01705905..d0ba12fe80f9a 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -17008,10 +17008,10 @@ Sema::VerifyIntegerConstantExpression(Expr *E, llvm::APSInt *Result,
if (!isa<ConstantExpr>(E))
E = Result ? ConstantExpr::Create(Context, E, APValue(*Result))
: ConstantExpr::Create(Context, E);
-
+
if (Notes.empty())
return E;
-
+
// If our only note is the usual "invalid subexpression" note, just point
// the caret at its location rather than producing an essentially
// redundant note.
@@ -17020,7 +17020,7 @@ Sema::VerifyIntegerConstantExpression(Expr *E, llvm::APSInt *Result,
DiagLoc = Notes[0].first;
Notes.clear();
}
-
+
if (getLangOpts().CPlusPlus) {
if (!Diagnoser.Suppress) {
Diagnoser.diagnoseNotICE(*this, DiagLoc) << E->getSourceRange();
@@ -17033,7 +17033,7 @@ Sema::VerifyIntegerConstantExpression(Expr *E, llvm::APSInt *Result,
Diagnoser.diagnoseFold(*this, DiagLoc) << E->getSourceRange();
for (const PartialDiagnosticAt &Note : Notes)
Diag(Note.first, Note.second);
-
+
return E;
}
More information about the cfe-commits
mailing list