MCPcopy Create free account
hub / github.com/beefytech/Beef / SetCArgs

Method SetCArgs

IDEHelper/Clang/CDepChecker.cpp:162–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void CDepChecker::SetCArgs(const char* cArgs)
163{
164 int strStart = 0;
165 for (int i = 0; cArgs[i] != (char)0; i++)
166 {
167 if (cArgs[i] == '\n')
168 {
169 String arg = String(cArgs + strStart, cArgs + i);
170 if (strncmp(arg.c_str(), "-I", 2) == 0)
171 {
172 String includeDir = arg.Substring(2);
173 includeDir = EnsureEndsInSlash(includeDir);
174#ifdef _WIN32
175 includeDir = ToUpper(includeDir);
176#endif
177 mIncludeDirs.push_back(includeDir);
178 }
179 else if (strncmp(arg.c_str(), "-D", 2) == 0)
180 {
181
182 }
183 strStart = i + 1;
184 }
185 }
186}
187
188/*String CDepChecker::DetermineFilesReferenced(const StringImpl& fileName)
189{

Calls 4

StringClass · 0.85
SubstringMethod · 0.80
c_strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected