[clang] [HLSL][NFC] Move IsIntangibleType from SemaHLSL to Type to make it accessible outside of Sema (PR #113206)
Damyan Pepper via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 22 10:52:58 PDT 2024
================
@@ -5030,6 +5030,29 @@ bool Type::hasSizedVLAType() const {
return false;
}
+bool Type::isHLSLIntangibleType() const {
+ const Type *Ty = getUnqualifiedDesugaredType();
+
+ // check if it's a builtin type first (simple check, no need to cache it)
----------------
damyanp wrote:
> no need to cache it
This suggests to me that we cache some of the other results? Is that correct?
Oh, I see that this is just moved code, may be worth cleaning the comment up at some point if it is just muddying the water.
https://github.com/llvm/llvm-project/pull/113206
More information about the cfe-commits
mailing list