[clang-tools-extra] 41e69fb - [pseudo] Add missing header guard for Forest.h

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 25 15:52:00 PDT 2022


Author: Haojian Wu
Date: 2022-03-25T23:51:19+01:00
New Revision: 41e69fb2453505bd42f5a6bc15369b50adebeac4

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

LOG: [pseudo] Add missing header guard for Forest.h

Added: 
    

Modified: 
    clang-tools-extra/pseudo/include/clang-pseudo/Forest.h

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h b/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h
index 650f9131bd2ea..2b22fd564f742 100644
--- a/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h
+++ b/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h
@@ -17,6 +17,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#ifndef CLANG_PSEUDO_FOREST_H
+#define CLANG_PSEUDO_FOREST_H
+
 #include "clang-pseudo/Grammar.h"
 #include "clang-pseudo/Token.h"
 #include "llvm/ADT/ArrayRef.h"
@@ -176,3 +179,5 @@ class ForestArena {
 
 } // namespace pseudo
 } // namespace clang
+
+#endif // CLANG_PSEUDO_FOREST_H


        


More information about the cfe-commits mailing list