diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bf3746 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +compile_commands.json diff --git a/compile_commands.json b/compile_commands.json deleted file mode 100644 index c418282..0000000 --- a/compile_commands.json +++ /dev/null @@ -1,271 +0,0 @@ -[ -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_LocalVariable.cpp", - "file": "test_LocalVariable.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_Struct.cpp", - "file": "test_Struct.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_GlobalConstant.cpp", - "file": "test_GlobalConstant.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_VirtualMethod.cpp", - "file": "test_VirtualMethod.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_Union.cpp", - "file": "test_Union.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_PointerParameter.cpp", - "file": "test_PointerParameter.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ProtectedMethod.cpp", - "file": "test_ProtectedMethod.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_TypeTemplateParameter.cpp", - "file": "test_TypeTemplateParameter.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_StaticConstant.cpp", - "file": "test_StaticConstant.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ParameterPack.cpp", - "file": "test_ParameterPack.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_EnumConstant.cpp", - "file": "test_EnumConstant.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_Function.cpp", - "file": "test_Function.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ValueTemplateParameter.cpp", - "file": "test_ValueTemplateParameter.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ClassMember.cpp", - "file": "test_ClassMember.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_Typedef.cpp", - "file": "test_Typedef.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ConstexprVariable.cpp", - "file": "test_ConstexprVariable.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ConstantMember.cpp", - "file": "test_ConstantMember.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ConstantParameter.cpp", - "file": "test_ConstantParameter.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ClassMethod.cpp", - "file": "test_ClassMethod.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ProtectedMember.cpp", - "file": "test_ProtectedMember.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ClassConstant.cpp", - "file": "test_ClassConstant.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_PrivateMethod.cpp", - "file": "test_PrivateMethod.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_InlineNamespace.cpp", - "file": "test_InlineNamespace.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_Class.cpp", - "file": "test_Class.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_PublicMember.cpp", - "file": "test_PublicMember.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_TemplateTemplateParameter.cpp", - "file": "test_TemplateTemplateParameter.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_GlobalPointer.cpp", - "file": "test_GlobalPointer.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_GlobalFunction.cpp", - "file": "test_GlobalFunction.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_Enum.cpp", - "file": "test_Enum.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_PublicMethod.cpp", - "file": "test_PublicMethod.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_LocalPointer.cpp", - "file": "test_LocalPointer.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_Namespace.cpp", - "file": "test_Namespace.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_AbstractClass.cpp", - "file": "test_AbstractClass.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_TemplateParameter.cpp", - "file": "test_TemplateParameter.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_TypeAlias.cpp", - "file": "test_TypeAlias.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ConstantPointerParameter.cpp", - "file": "test_ConstantPointerParameter.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_Parameter.cpp", - "file": "test_Parameter.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ConstexprFunction.cpp", - "file": "test_ConstexprFunction.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_LocalConstantPointer.cpp", - "file": "test_LocalConstantPointer.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_LocalConstant.cpp", - "file": "test_LocalConstant.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_StaticVariable.cpp", - "file": "test_StaticVariable.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_GlobalConstantPointer.cpp", - "file": "test_GlobalConstantPointer.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_GlobalVariable.cpp", - "file": "test_GlobalVariable.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_PrivateMember.cpp", - "file": "test_PrivateMember.cpp" -}, - -{ - "directory": "/home/a/work/proj/doc/clang-tidy2", - "command": "g++ -c -o /dev/null test_ConstexprMethod.cpp", - "file": "test_ConstexprMethod.cpp" -} -] diff --git a/test_IgnoreMainLikeFunctions.cpp b/test_IgnoreMainLikeFunctions.cpp new file mode 100644 index 0000000..b2f9976 --- /dev/null +++ b/test_IgnoreMainLikeFunctions.cpp @@ -0,0 +1,2 @@ +int main() { +}