MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / getDefaultIncludeDirs

Function getDefaultIncludeDirs

docs/OptionDocumentationGenerator.py:23–37  ·  view source on GitHub ↗
(cxx)

Source from the content-addressed store, hash-verified

21#------------------------------------------------------------------------------
22
23def getDefaultIncludeDirs(cxx):
24 cmd = [cxx, '-E', '-x', 'c++', '-v', '/dev/null']
25 stdout, stderr, retCode = runCmd(cmd)
26
27 m = re.findall('\n (/.*)', stderr)
28
29 includes = []
30
31 for x in m:
32 if -1 != x.find('(framework directory)'):
33 continue
34
35 includes.append('-isystem%s' %(x))
36
37 return includes
38#------------------------------------------------------------------------------
39
40def replaceSource(match):

Callers 2

replaceInsightsFunction · 0.85
mainFunction · 0.85

Calls 1

runCmdFunction · 0.70

Tested by

no test coverage detected