diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -646,7 +646,7 @@ def interface_stub_version_EQ : JoinedOrSeparate<["-"], "interface-stub-version=">, Flags<[CC1Option]>; def exported__symbols__list : Separate<["-"], "exported_symbols_list">; def e : JoinedOrSeparate<["-"], "e">, Group; -def fmax_tokens : Separate<["-"], "fmax-tokens">, +def fmax_tokens : Joined<["-"], "fmax-tokens=">, HelpText<"Max total number of preprocessed tokens for -Wmax-tokens.">, Group, Flags<[CC1Option]>; def fPIC : Flag<["-"], "fPIC">, Group; diff --git a/clang/test/Parser/max-tokens.cpp b/clang/test/Parser/max-tokens.cpp --- a/clang/test/Parser/max-tokens.cpp +++ b/clang/test/Parser/max-tokens.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -// RUN: %clang_cc1 -fsyntax-only -verify %s -DMAX_TOKENS -fmax-tokens 2 -// RUN: %clang_cc1 -fsyntax-only -verify %s -DMAX_TOKENS_OVERRIDE -fmax-tokens 9 +// RUN: %clang_cc1 -fsyntax-only -verify %s -DMAX_TOKENS -fmax-tokens=2 +// RUN: %clang_cc1 -fsyntax-only -verify %s -DMAX_TOKENS_OVERRIDE -fmax-tokens=9 int x, y, z;