Skip to content

Commit 079d589

Browse files
authored
[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) { ```
1 parent 133406e commit 079d589

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/include/clang/AST/HLSLResource.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
#define LLVM_CLANG_AST_HLSLRESOURCE_H
1616

1717
#include "clang/AST/ASTContext.h"
18+
#include "clang/AST/Attr.h"
1819
#include "clang/AST/Attrs.inc"
1920
#include "clang/AST/DeclBase.h"
2021
#include "clang/Basic/TargetInfo.h"
22+
#include "clang/Support/Compiler.h"
23+
#include "llvm/Support/raw_ostream.h"
2124

2225
namespace clang {
2326

0 commit comments

Comments
 (0)