/* Test-file for coding style checker * Copyright 2010, Haiku, Inc. * Distributed under the terms of the MIT Licence */ // DETECTED problems // Line longer than 80 chars int someveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongFunctionName( int aLongParameter) { // Identantion with spaces instead of tabs int a; int b; int c; // Missing space after control statement if(condition); //Missing space at comment start // Operator without spaces if (a>b); // Operator at end of line if (a > b) j = k + i; // Wrong line breaks around else if (test) { } else { } // Less than two lines between functions } // Missing space before opening brace int aFunction(char param){ // More than two lines between blocks } // CORRECT things that should not be detected as violations #include