Skip to content
  • Zubin's avatar
    babb47d2
    Add warnings for file header pragmas that appear in the body of a module (#20385) · babb47d2
    Zubin authored and Marge Bot's avatar Marge Bot committed
    Once we are done parsing the header of a module to obtain the options, we
    look through the rest of the tokens in order to determine if they contain any
    misplaced file header pragmas that would usually be ignored, potentially
    resulting in bad error messages.
    
    The warnings are reported immediately so that later errors don't shadow
    over potentially helpful warnings.
    
    Metric Increase:
      T13719
    babb47d2
    Add warnings for file header pragmas that appear in the body of a module (#20385)
    Zubin authored and Marge Bot's avatar Marge Bot committed
    Once we are done parsing the header of a module to obtain the options, we
    look through the rest of the tokens in order to determine if they contain any
    misplaced file header pragmas that would usually be ignored, potentially
    resulting in bad error messages.
    
    The warnings are reported immediately so that later errors don't shadow
    over potentially helpful warnings.
    
    Metric Increase:
      T13719
Loading