[clang-tools-extra] c187182 - [clangd] Add a missing header guard for InsertionPoint.h

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 12 12:29:03 PST 2022


Author: Haojian Wu
Date: 2022-12-12T21:25:29+01:00
New Revision: c187182429fb3c8af09827b816c1cb8976bc93e7

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

LOG: [clangd] Add a missing header guard for InsertionPoint.h

Added: 
    

Modified: 
    clang-tools-extra/clangd/refactor/InsertionPoint.h

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/refactor/InsertionPoint.h b/clang-tools-extra/clangd/refactor/InsertionPoint.h
index eee158b77e1f6..401a384928e11 100644
--- a/clang-tools-extra/clangd/refactor/InsertionPoint.h
+++ b/clang-tools-extra/clangd/refactor/InsertionPoint.h
@@ -6,6 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_REFACTOR_INSERTIONPOINT_H
+#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_REFACTOR_INSERTIONPOINT_H
+
 #include "clang/AST/DeclCXX.h"
 #include "clang/Basic/Specifiers.h"
 #include "clang/Tooling/Core/Replacement.h"
@@ -51,3 +54,5 @@ llvm::Expected<tooling::Replacement> insertDecl(llvm::StringRef Code,
 
 } // namespace clangd
 } // namespace clang
+
+#endif


        


More information about the cfe-commits mailing list