This is an archive of the discontinued LLVM Phabricator instance.

Fix compilation error in clangd/refactor/tweaks/ExpandAutoType.cpp
ClosedPublic

Authored by psamolysov on Oct 25 2019, 3:52 AM.

Details

Summary

During the compilation of the clangd/refactor/tweaks/ExpandAutoType.cpp, MSVC returns the following error:

llvm-monorepo\llvm\tools\clang\tools\extra\clangd\refactor\tweaks\ExpandAutoType.cpp(85): error C2146: syntax error: missing ')' before identifier 'and'
llvm-monorepo\llvm\tools\clang\tools\extra\clangd\refactor\tweaks\ExpandAutoType.cpp(85): error C2065: 'and': undeclared identifier
llvm-monorepo\llvm\tools\clang\tools\extra\clangd\refactor\tweaks\ExpandAutoType.cpp(86): error C2143: syntax error: missing ';' before '<template-id>'
llvm-monorepo\llvm\tools\clang\tools\extra\clangd\refactor\tweaks\ExpandAutoType.cpp(73): fatal error C1075: '{': no matching token found

So, && must be used instead of and.

Diff Detail

Event Timeline

psamolysov created this revision.Oct 25 2019, 3:52 AM
kadircet accepted this revision.Oct 25 2019, 4:36 AM

LGTM, thanks !

This revision is now accepted and ready to land.Oct 25 2019, 4:36 AM

I have no commit access, can anyone land this small fix, please?

This revision was automatically updated to reflect the committed changes.