我使用clang ++作为静态分析工具,我正在使用Google GMOCK。所以当我构建文件时:
clang++ -fsyntax-only -I/text/gmock/include/ -I/text/gmock/gtest/include -std=c++03 foo_test.cpp
我收到这些错误:
dispat_tasks_test.cpp:38:8: error: expected class name
TEST_F(DispatcherTest, constructor_sizeof_sm) {
^
/work/c1202-firmware/gmock/gtest/include/gtest/gtest.h:2272:40: note: expanded from macro 'TEST_F'
GTEST_TEST_(test_fixture, test_name, test_fixture, \
^
/work/c1202-firmware/gmock/gtest/include/gtest/internal/gtest-internal.h:1137:66: note: expanded from macro 'GTEST_TEST_'
class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public parent_class {\
^
任何使clang ++与GMOCK一起工作的方法吗?