Author: Jordan Rupprecht
Date: 2025-10-01T04:18:20Z
New Revision: 079d589f5a389d18b6277b31a61e471ec56b5b7e

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

LOG: [HLSL][NFC] Add missing includes for standalone header compilation 
(#161473)

HLSLResource.h added by #161254 builds in the context of a .cpp file
(e.g. CGHLSLRuntime.cpp) but not when doing a header compilation, e.g.:

```
clang/include/clang/AST/Attrs.inc:12:45: error: unknown type name 
'raw_ostream'; did you mean 'clang::raw_ostream'?
   12 | static inline void DelimitAttributeArgument(raw_ostream& OS, bool& 
IsFirst) {
```

Added: 
    

Modified: 
    clang/include/clang/AST/HLSLResource.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/HLSLResource.h 
b/clang/include/clang/AST/HLSLResource.h
index e3ee0b136cec3..9cdd81b2d8dab 100644
--- a/clang/include/clang/AST/HLSLResource.h
+++ b/clang/include/clang/AST/HLSLResource.h
@@ -15,9 +15,12 @@
 #define LLVM_CLANG_AST_HLSLRESOURCE_H
 
 #include "clang/AST/ASTContext.h"
+#include "clang/AST/Attr.h"
 #include "clang/AST/Attrs.inc"
 #include "clang/AST/DeclBase.h"
 #include "clang/Basic/TargetInfo.h"
+#include "clang/Support/Compiler.h"
+#include "llvm/Support/raw_ostream.h"
 
 namespace clang {
 


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to