diff options
Diffstat (limited to 'clang/lib/Format')
| -rw-r--r-- | clang/lib/Format/TokenAnnotator.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index 1d0dfd0b..021d8c6 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/lib/Format/TokenAnnotator.cpp @@ -2674,8 +2674,11 @@ private:      }      // *a or &a or &&a. -    if (PreviousNotConst->is(TT_PointerOrReference)) +    if (PreviousNotConst->is(TT_PointerOrReference) || +        PreviousNotConst->endsSequence(tok::coloncolon, +                                       TT_PointerOrReference)) {        return true; +    }      // MyClass a;      if (PreviousNotConst->isTypeName(LangOpts)) | 
