Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Code formatting glitch

Jesper Eskilson wrote:

I've found that code inside inactive preprocessor statements are not formatted correctly.

  // normal code is formatted like this
  cout << "..."
      << "..."
      << "..."

  // inactive code is formatted like this
  #if SOME_UNDEFINED_SYMBOL
  cout << "..."
  << "..."
  << "..."
  #endif

Am I doing something wrong, or is there a setting controlling this. (Or is it a bug in the formatter?)


Since no-one replied, I submitted a bug on this.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=278903

--
/Jesper




Back to the top