Skip to content
Snippets Groups Projects
  1. Dec 14, 2012
  2. Nov 14, 2012
    • Eli Friedman's avatar
      Suppress elided variadic macro argument extension diagnostic for macros using · 4fa4b480
      Eli Friedman authored
      the related comma pasting extension.
      
      In certain cases, we used to get two diagnostics for what is essentially one
      extension.  This change suppresses the first diagnostic in certain cases
      where we know we're going to print the second diagnostic.  The
      diagnostic is redundant, and it can't be suppressed in the definition
      of the macro because it points at the use of the macro, so we want to
      avoid printing it if possible.
      
      The implementation works by detecting constructs which look like comma
      pasting at the time of the definition of the macro; this information
      is then used when the macro is used.  (We can't actually detect
      whether we're using the comma pasting extension until the macro is
      actually used, but we can detecting constructs which will be comma
      pasting if the varargs argument is elided.)
      
      <rdar://problem/12292192>
      
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167907 91177308-0d34-0410-b5e6-96231b3b80d8
      4fa4b480
  3. Jun 23, 2012
  4. Dec 15, 2009
  5. Apr 24, 2009
  6. Apr 20, 2009
  7. Apr 19, 2009
  8. Apr 18, 2009
Loading