code completion. We were allowing the preamble to include the line
that we're code-completing on. Again, testcase is forthcoming.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112064
91177308-0d34-0410-b5e6-
96231b3b80d8
if (const FileStatus *MainStatus = MainPath.getFileStatus())
if (CompleteFileStatus->getUniqueID() == MainStatus->getUniqueID())
OverrideMainBuffer
- = getMainBufferWithPrecompiledPreamble(CCInvocation, false, Line);
+ = getMainBufferWithPrecompiledPreamble(CCInvocation, false,
+ Line - 1);
}
// If the main file has been overridden due to the use of a preamble,