File tree Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1717#include " clang/Basic/DiagnosticParse.h"
1818#include " clang/Lex/LexHLSLRootSignature.h"
1919#include " clang/Lex/Preprocessor.h"
20+ #include " clang/Sema/SemaHLSL.h"
2021
2122#include " llvm/ADT/SmallVector.h"
2223#include " llvm/ADT/StringRef.h"
2627namespace clang {
2728namespace hlsl {
2829
29- // Introduce a wrapper struct around the underlying RootElement. This structure
30- // will retain extra clang diagnostic information that is not available in llvm.
31- struct RootSignatureElement {
32- RootSignatureElement (SourceLocation Loc,
33- llvm::hlsl::rootsig::RootElement Element)
34- : Loc(Loc), Element(Element) {}
35-
36- const llvm::hlsl::rootsig::RootElement &getElement () const { return Element; }
37- const SourceLocation &getLocation () const { return Loc; }
38-
39- private:
40- SourceLocation Loc;
41- llvm::hlsl::rootsig::RootElement Element;
42- };
43-
4430class RootSignatureParser {
4531public:
4632 RootSignatureParser (llvm::dxbc::RootSignatureVersion Version,
Original file line number Diff line number Diff line change @@ -33,8 +33,23 @@ class Scope;
3333class VarDecl ;
3434
3535namespace hlsl {
36- struct RootSignatureElement ;
37- }
36+
37+ // Introduce a wrapper struct around the underlying RootElement. This structure
38+ // will retain extra clang diagnostic information that is not available in llvm.
39+ struct RootSignatureElement {
40+ RootSignatureElement (SourceLocation Loc,
41+ llvm::hlsl::rootsig::RootElement Element)
42+ : Loc(Loc), Element(Element) {}
43+
44+ const llvm::hlsl::rootsig::RootElement &getElement () const { return Element; }
45+ const SourceLocation &getLocation () const { return Loc; }
46+
47+ private:
48+ SourceLocation Loc;
49+ llvm::hlsl::rootsig::RootElement Element;
50+ };
51+
52+ } // namespace hlsl
3853
3954using llvm::dxil::ResourceClass;
4055
Original file line number Diff line number Diff line change 2828#include " clang/Basic/SourceLocation.h"
2929#include " clang/Basic/Specifiers.h"
3030#include " clang/Basic/TargetInfo.h"
31- #include " clang/Parse/ParseHLSLRootSignature.h"
3231#include " clang/Sema/Initialization.h"
3332#include " clang/Sema/Lookup.h"
3433#include " clang/Sema/ParsedAttr.h"
You can’t perform that action at this time.
0 commit comments