[clang] Avoid need for SLocEntryLoaded BitVector (PR #67960)

Giulio Eulisse via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 2 13:29:51 PDT 2023


================
@@ -489,6 +490,8 @@ class SLocEntry {
 
   bool isExpansion() const { return IsExpansion; }
   bool isFile() const { return !isExpansion(); }
+  [[nodiscard]] bool isLoaded() const { return Loaded; }
----------------
ktf wrote:

No, I guess not. It's just my clang-tidy integration being overzealous, I guess.

```suggestion
  bool isLoaded() const { return Loaded; }
```

https://github.com/llvm/llvm-project/pull/67960


More information about the cfe-commits mailing list