1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2025-04-09 19:08:39 +02:00
phorge-arcanist/src/lint/linter/__tests__/cppcheck/inline-suppr.lint-test
Joshua Spence 315314425e Modernize ArcanistCppcheckLinter.
Summary: Ref T2039. Make the `ArcanistCppcheckLinter` compatible with `.arclint`.

Test Plan: Wrote and executed unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T2039

Differential Revision: https://secure.phabricator.com/D9068
2014-05-12 04:30:36 -07:00

7 lines
145 B
Text

void f() {
char arr[5];
// cppcheck-suppress arrayIndexOutOfBounds
// cppcheck-suppress unreadVariable
arr[10] = 0;
}
~~~~~~~~~~