summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/readability-isolate-declaration.cpp
blob: 5d64e0171fdd74bae5ec828e3a5bfd27abc19b21 (plain)
1
2
3
4
5
6
7
void f() {
  int * pointer = nullptr, value = 42, * const const_ptr = &value;
  // This declaration will be diagnosed and transformed into:
  // int * pointer = nullptr;
  // int value = 42;
  // int * const const_ptr = &value;
}