mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Remove OptimizeForIDE global configuration
Have SourceKit return locations for symbols outside of the current module as well. Callsites of location and comment information should explicitly disable retrieving serialized information where performance is a concern. Resolves rdar://75582627
This commit is contained in:
@@ -839,7 +839,7 @@ static void setLocationInfoForClangNode(ClangNode ClangNode,
|
||||
ClangSM.getDecomposedLoc(CharRange.getEnd());
|
||||
|
||||
Location.Offset = Decomp.second;
|
||||
Location.Length = EndDecomp.second-Decomp.second;
|
||||
Location.Length = EndDecomp.second - Decomp.second;
|
||||
Location.Line = ClangSM.getLineNumber(Decomp.first, Decomp.second);
|
||||
Location.Column = ClangSM.getColumnNumber(Decomp.first, Decomp.second);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user