[clang] d054b31 - [clang] Use consistent punctuation at end of Block NULL comment

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 26 06:45:34 PDT 2021


Author: Nico Weber
Date: 2021-10-26T09:45:22-04:00
New Revision: d054b31d5975f6cffeef8c9f3fa57e1c4b60d427

URL: https://github.com/llvm/llvm-project/commit/d054b31d5975f6cffeef8c9f3fa57e1c4b60d427
DIFF: https://github.com/llvm/llvm-project/commit/d054b31d5975f6cffeef8c9f3fa57e1c4b60d427.diff

LOG: [clang] Use consistent punctuation at end of Block NULL comment

No behavior change.

Added: 
    

Modified: 
    clang/lib/Analysis/CFG.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp
index 8a3051a2f9ee..190e0d94ee99 100644
--- a/clang/lib/Analysis/CFG.cpp
+++ b/clang/lib/Analysis/CFG.cpp
@@ -3288,7 +3288,7 @@ CFGBlock *CFGBuilder::VisitLabelStmt(LabelStmt *L) {
   if (badCFG)
     return nullptr;
 
-  // We set Block to NULL to allow lazy creation of a new block (if necessary);
+  // We set Block to NULL to allow lazy creation of a new block (if necessary).
   Block = nullptr;
 
   // This block is now the implicit successor of other blocks.
@@ -4274,7 +4274,7 @@ CFGBlock *CFGBuilder::VisitCaseStmt(CaseStmt *CS) {
                shouldAddCase(switchExclusivelyCovered, switchCond,
                              CS, *Context));
 
-  // We set Block to NULL to allow lazy creation of a new block (if necessary)
+  // We set Block to NULL to allow lazy creation of a new block (if necessary).
   Block = nullptr;
 
   if (TopBlock) {
@@ -4310,7 +4310,7 @@ CFGBlock *CFGBuilder::VisitDefaultStmt(DefaultStmt *Terminator) {
   // (including a fall-through to the code after the switch statement) to always
   // be the last successor of a switch-terminated block.
 
-  // We set Block to NULL to allow lazy creation of a new block (if necessary)
+  // We set Block to NULL to allow lazy creation of a new block (if necessary).
   Block = nullptr;
 
   // This block is now the implicit successor of other blocks.
@@ -4409,7 +4409,7 @@ CFGBlock *CFGBuilder::VisitCXXCatchStmt(CXXCatchStmt *CS) {
   if (badCFG)
     return nullptr;
 
-  // We set Block to NULL to allow lazy creation of a new block (if necessary)
+  // We set Block to NULL to allow lazy creation of a new block (if necessary).
   Block = nullptr;
 
   return CatchBlock;


        


More information about the cfe-commits mailing list