Fix misleading-indentation compilation error under clang 10 (#33406)
authorOmair Majid <omajid@redhat.com>
Tue, 10 Mar 2020 07:13:14 +0000 (03:13 -0400)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 07:13:14 +0000 (00:13 -0700)
commit29cd9a5c6fee624594a93bffd7b32b379ffe94cc
tree0a7f4a45bdaa58ee611a68fd13640bcf8bd45b91
parent197d24e16147f8f106e1d9f0ee41bdf7f694b6c3
Fix misleading-indentation compilation error under clang 10 (#33406)

The error looks like this (seen in dotnet/coreclr repo):

    In file included from /root/coreclr/src/ildasm/dasm_mi.cpp:7:
    /root/coreclr/src/ildasm/exe/../../tools/metainfo/mdinfo.cpp:1951:9: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
        if (!wcscmp(W("__DecoratedName"), rcName))
        ^
    /root/coreclr/src/ildasm/exe/../../tools/metainfo/mdinfo.cpp:1947:5: note: previous statement is here
if (pSig && pMethName)
^
    1 error generated.
src/coreclr/src/tools/metainfo/mdinfo.cpp