Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into chr_15226
  • Loading branch information
chrchr-github authored Nov 27, 2026
commit 59fb540d47f08872d7b614b9315b81eb57fdb27a
9 changes: 9 additions & 0 deletions test/testother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5090,6 +5090,15 @@ class TestOther : public TestFixture {
"void h(int *p) {}\n");
ASSERT_EQUALS("[test.cpp:3:13]: (style) Parameter 'p' can be declared as pointer to const [constParameterPointer]\n", errout_str());

checkP("struct S { int i; };\n" // #15222
"#define DECL_ARGS S *p, S *q\n"
"void f(DECL_ARGS) {\n"
" if (p->i == 0 && q->i == 1) {}\n"
"}\n");
ASSERT_EQUALS("[test.cpp:3:8]: (style) Parameter 'p' can be declared as pointer to const [constParameterPointer]\n"
"[test.cpp:3:8]: (style) Parameter 'q' can be declared as pointer to const [constParameterPointer]\n",
errout_str());

check("void f(int* p, U n) {\n" // #15226
" g(*(p + n));\n"
"}\n"
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.