[all-commits] [llvm/llvm-project] ce1e24: Fix compilation error in clangd/refactor/tweaks/Ex...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Fri Oct 25 05:18:02 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ce1e249a688dced25735e38242df561e387b8e2b
      https://github.com/llvm/llvm-project/commit/ce1e249a688dced25735e38242df561e387b8e2b
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2019-10-25 (Fri, 25 Oct 2019)

  Changed paths:
    M clang-tools-extra/clangd/refactor/tweaks/ExpandAutoType.cpp

  Log Message:
  -----------
  Fix compilation error in clangd/refactor/tweaks/ExpandAutoType.cpp

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`.

Patch By Pavel Samolysov (@psamolysov) !

Reviewers: kadircet

Reviewed By: kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang, #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D69427




More information about the All-commits mailing list