[all-commits] [llvm/llvm-project] 308a23: [clang-tidy] `isOnlyUsedAsConst`: Handle static me...

Clement Courbet via All-commits all-commits at lists.llvm.org
Thu Mar 7 12:02:09 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 308a2360725948fd6c77d005110c169ab1a8322c
      https://github.com/llvm/llvm-project/commit/308a2360725948fd6c77d005110c169ab1a8322c
  Author: Clement Courbet <courbet at google.com>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp
    M clang-tools-extra/unittests/clang-tidy/DeclRefExprUtilsTest.cpp

  Log Message:
  -----------
  [clang-tidy] `isOnlyUsedAsConst`: Handle static method calls. (#84005)

... using method syntax:

```
struct S {
  static void f()
};

void DoIt(S& s) {
  s.f();  // Does not mutate `s` through the `this` parameter.
}
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list