public static GetPredefinedSymbols ( string fileName, DTE dte ) : IEnumerable |
||
fileName | string | |
dte | DTE | |
리턴 | IEnumerable |
private static ClangAdapter CreateClangAdapter(ITextBuffer buffer) { ITextDocument document; buffer.Properties.TryGetProperty(typeof(ITextDocument), out document); var filePath = document.FilePath; var includePaths = AVRStudio.GetIncludePaths(filePath, dte); var symbols = AVRStudio.GetPredefinedSymbols(filePath, dte); return(new ClangAdapter(filePath, new List <string>(includePaths), new List <string>(symbols))); }
private static ClangAdapter CreateClangAdapter(ITextBuffer buffer) { ITextDocument document; if (!buffer.Properties.TryGetProperty(typeof(ITextDocument), out document) || document == null) { return(null); } var filePath = document.FilePath; var includePaths = AVRStudio.GetIncludePaths(filePath, dte); var symbols = AVRStudio.GetPredefinedSymbols(filePath, dte); var isc99 = AVRStudio.IsC99Enabled(filePath, dte); return(new ClangAdapter(filePath, new List <string>(includePaths), new List <string>(symbols), isc99)); }