[clang] [CIR] Upstream simple function bodies (PR #127674)

David Olsen via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 18 14:49:37 PST 2025


================
@@ -11,8 +11,8 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_CLANG_CIR_DIALECT_IR_CIROPS
-#define LLVM_CLANG_CIR_DIALECT_IR_CIROPS
+#ifndef CLANG_CIR_DIALECT_IR_CIROPS_TD
----------------
dkolsen-pgi wrote:

Because the LLVM [coding guidelines](https://llvm.org/docs/CodingStandards.html#header-guard) for include guards only talk about that path that would be used when including the file.  `LLVM` isn't part of that.

(The guidelines don't say what to do for headers that are outside the `include` directory, such as those in `clang/lib/CIR/CodeGen`.  So I have been leaving the `LLVM` in those include guard macros.)


https://github.com/llvm/llvm-project/pull/127674


More information about the cfe-commits mailing list