Nathan =?utf-8?q?Gauër?= <[email protected]>,
Nathan =?utf-8?q?Gauër?= <[email protected]>,
Nathan =?utf-8?q?Gauër?= <[email protected]>,
Nathan =?utf-8?q?Gauër?= <[email protected]>,
Nathan =?utf-8?q?Gauër?= <[email protected]>,
Nathan =?utf-8?q?Gauër?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


================
@@ -140,6 +140,11 @@ def SharedVar : SubsetSubject<Var,
                               [{S->hasGlobalStorage() && !S->getTLSKind()}],
                               "global variables">;
 
+def HLSLInputBuiltin : SubsetSubject<Var, [{S->hasGlobalStorage() &&
+                    S->getStorageClass()==StorageClass::SC_Static &&
+                    S->getType().isConstQualified()}],
+                                     "static const globals">;
----------------
bogner wrote:

Spacing looks a little funny here. Did you know that clang-format (mostly) 
works on .td files? It's a bit tricky to use here since the file as a whole 
isn't clang-format clean, but I get the following:
```suggestion
def HLSLInputBuiltin
    : SubsetSubject<Var, [{S->hasGlobalStorage() &&
                           S->getStorageClass() == StorageClass::SC_Static &&
                           S->getType().isConstQualified()}],
                    "static const globals">;
```

https://github.com/llvm/llvm-project/pull/138530
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to