diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-05-07 15:00:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-07 15:00:33 -0400 |
| commit | c16abd4fe1bda5ebcd50dbb22f30c6be43bb885f (patch) | |
| tree | d127a9bd48708d909ab36efdd2ac0d9956f7541b /source/slang/slang-ir.h | |
| parent | 9245460adaf739c5a4d85f7f477b65fcd07d595b (diff) | |
Enhanced C++ extractor (#1340)
* Extractor builds without any reference to syntax (as it will be helping to produce this!).
* Change macros to include the super class.
* Added indexOf(const UnownedSubString& in) to UnownedSubString.
Refactored extractor
* Output a macro for each type with the extracted info - can be used during injection in class
* Simplify the header file - as can get super type and last from macro now
* Store the 'origin' of a definition
* Some small tidy ups to the extractor.
* Improve comments on the extractor options.
* Made CPPExtractor own SourceOrigins
* Small fixes around SourceOrigin.
* Small tidy up around macroOrign
Diffstat (limited to 'source/slang/slang-ir.h')
| -rw-r--r-- | source/slang/slang-ir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-ir.h b/source/slang/slang-ir.h index 0ca0093f2..d9d09975d 100644 --- a/source/slang/slang-ir.h +++ b/source/slang/slang-ir.h @@ -565,6 +565,8 @@ T* cast(IRInst* inst, T* /* */ = nullptr) return (T*)inst; } +SourceLoc const& getDiagnosticPos(IRInst* inst); + // Now that `IRInst` is defined we can back-fill the definitions that need to access it. template<typename T> |
