Skip to content
Snippets Groups Projects
  • Manuel Klimek's avatar
    f6fd00b1
    Fixes parsing of hash tokens in the middle of a line. · f6fd00b1
    Manuel Klimek authored
    To parse # correctly, we need to know whether it is the first token in a
    line - we can deduct this either from the whitespace or seeing that the
    token is the first in the file - we already calculate this information.
    This patch moves the identification of the first token into the
    getNextToken method and stores it inside the FormatToken, so the
    UnwrappedLineParser can stay independent of the SourceManager.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171640 91177308-0d34-0410-b5e6-96231b3b80d8
    f6fd00b1
    History
    Fixes parsing of hash tokens in the middle of a line.
    Manuel Klimek authored
    To parse # correctly, we need to know whether it is the first token in a
    line - we can deduct this either from the whitespace or seeing that the
    token is the first in the file - we already calculate this information.
    This patch moves the identification of the first token into the
    getNextToken method and stores it inside the FormatToken, so the
    UnwrappedLineParser can stay independent of the SourceManager.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171640 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.