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 17
17
#include " clang/Basic/DiagnosticParse.h"
18
18
#include " clang/Lex/LexHLSLRootSignature.h"
19
19
#include " clang/Lex/Preprocessor.h"
20
+ #include " clang/Sema/SemaHLSL.h"
20
21
21
22
#include " llvm/ADT/SmallVector.h"
22
23
#include " llvm/ADT/StringRef.h"
26
27
namespace clang {
27
28
namespace hlsl {
28
29
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
-
44
30
class RootSignatureParser {
45
31
public:
46
32
RootSignatureParser (llvm::dxbc::RootSignatureVersion Version,
Original file line number Diff line number Diff line change @@ -33,8 +33,23 @@ class Scope;
33
33
class VarDecl ;
34
34
35
35
namespace 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
38
53
39
54
using llvm::dxil::ResourceClass;
40
55
Original file line number Diff line number Diff line change 28
28
#include " clang/Basic/SourceLocation.h"
29
29
#include " clang/Basic/Specifiers.h"
30
30
#include " clang/Basic/TargetInfo.h"
31
- #include " clang/Parse/ParseHLSLRootSignature.h"
32
31
#include " clang/Sema/Initialization.h"
33
32
#include " clang/Sema/Lookup.h"
34
33
#include " clang/Sema/ParsedAttr.h"
You can’t perform that action at this time.
0 commit comments