76 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			76 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
.PHONY: all
 | 
						|
 | 
						|
UNKNOWN = \
 | 
						|
  test_Constant.cpp \
 | 
						|
  test_Member.cpp \
 | 
						|
  test_Method.cpp \
 | 
						|
  test_Variable.cpp \
 | 
						|
 | 
						|
SOURCES= \
 | 
						|
  test_AbstractClass.cpp \
 | 
						|
  test_ClassConstant.cpp \
 | 
						|
  test_Class.cpp \
 | 
						|
  test_ClassMember.cpp \
 | 
						|
  test_ClassMethod.cpp \
 | 
						|
  test_ConstantMember.cpp \
 | 
						|
  test_ConstantParameter.cpp \
 | 
						|
  test_ConstantPointerParameter.cpp \
 | 
						|
  test_ConstexprFunction.cpp \
 | 
						|
  test_ConstexprMethod.cpp \
 | 
						|
  test_ConstexprVariable.cpp \
 | 
						|
  test_EnumConstant.cpp \
 | 
						|
  test_Enum.cpp \
 | 
						|
  test_Function.cpp \
 | 
						|
  test_GlobalConstant.cpp \
 | 
						|
  test_GlobalConstantPointer.cpp \
 | 
						|
  test_GlobalFunction.cpp \
 | 
						|
  test_GlobalPointer.cpp \
 | 
						|
  test_GlobalVariable.cpp \
 | 
						|
  test_InlineNamespace.cpp \
 | 
						|
  test_LocalConstant.cpp \
 | 
						|
  test_LocalConstantPointer.cpp \
 | 
						|
  test_LocalPointer.cpp \
 | 
						|
  test_LocalVariable.cpp \
 | 
						|
  test_Namespace.cpp \
 | 
						|
  test_Parameter.cpp \
 | 
						|
  test_ParameterPack.cpp \
 | 
						|
  test_PointerParameter.cpp \
 | 
						|
  test_PrivateMember.cpp \
 | 
						|
  test_PrivateMethod.cpp \
 | 
						|
  test_ProtectedMember.cpp \
 | 
						|
  test_ProtectedMethod.cpp \
 | 
						|
  test_PublicMember.cpp \
 | 
						|
  test_PublicMethod.cpp \
 | 
						|
  test_StaticConstant.cpp \
 | 
						|
  test_StaticVariable.cpp \
 | 
						|
  test_Struct.cpp \
 | 
						|
  test_TemplateParameter.cpp \
 | 
						|
  test_TemplateTemplateParameter.cpp \
 | 
						|
  test_TypeAlias.cpp \
 | 
						|
  test_Typedef.cpp \
 | 
						|
  test_TypeTemplateParameter.cpp \
 | 
						|
  test_Union.cpp \
 | 
						|
  test_ValueTemplateParameter.cpp \
 | 
						|
  test_VirtualMethod.cpp
 | 
						|
 | 
						|
OBJECTS=$(SOURCES:.cpp=.o)
 | 
						|
 | 
						|
RESULTS=$(SOURCES:.cpp=.txt)
 | 
						|
 | 
						|
bear:
 | 
						|
	bear -o compile_commands.json make obj
 | 
						|
	compdb -p . list > compdb.json
 | 
						|
	mv -f compdb.json compile_commands.json
 | 
						|
	make res
 | 
						|
 | 
						|
obj: $(OBJECTS)
 | 
						|
 | 
						|
res: $(RESULTS)
 | 
						|
 | 
						|
.cpp.o:
 | 
						|
	$(CXX) $(CXXFLAGS) -c $< -o /dev/null
 | 
						|
 | 
						|
%.txt : %.cpp
 | 
						|
	clang-tidy-8 -quiet $<
 | 
						|
 |