Ignore:
Timestamp:
Feb 2, 2018, 8:30:45 PM (23 months ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCmMetadata: Do not accept immediate # after 'Key:'. Skip short empty lines inside block. Update ROCmMetadata testsuite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdbin/ROCmBinaries.cpp

    r3698 r3704  
    129129    const char* afterColon = ptr;
    130130    skipSpacesToLineEnd(ptr, end);
    131     if (afterColon == ptr && ptr != end && *ptr!='\n' && *ptr!='#')
    132         // only if not immediate newline or comment
     131    if (afterColon == ptr && ptr != end && *ptr!='\n')
     132        // only if not immediate newline
    133133        throw ParseException(lineNo, "After key and colon must be space");
    134134    CString keyword(keyPtr, keyEnd);
     
    669669                continue;
    670670            }
    671             if (ptr-lineStart <= prevIndent)
     671            if (ptr-lineStart <= prevIndent && *ptr!='\n')
    672672            {
    673673                ptr = lineStart;
Note: See TracChangeset for help on using the changeset viewer.