MCPcopy Index your code
hub / github.com/cpplint/cpplint / testIncludeWhatYouUseNoImplementationFiles

Method testIncludeWhatYouUseNoImplementationFiles

cpplint_unittest.py:1131–1137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1129 self.TestLint("typedef void Func(int *x);", "")
1130
1131 def testIncludeWhatYouUseNoImplementationFiles(self):
1132 code = "std::vector<int> foo;"
1133 for extension in ["h", "hpp", "hxx", "h++", "cuh", "c", "cc", "cpp", "cxx", "c++", "cu"]:
1134 assert (
1135 self.PerformIncludeWhatYouUse(code, "foo." + extension)
1136 == "Add #include <vector> for vector<> [build/include_what_you_use] [4]"
1137 )
1138
1139 def testIncludeWhatYouUse(self):
1140 self.TestIncludeWhatYouUse(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected