r208176 - clang-format: Be slightly more aggressive on single-line functions.

Daniel Jasper djasper at google.com
Wed May 7 04:20:06 PDT 2014


Why is this using an elaborated return type? Can you just remove the
"struct"?


On Wed, May 7, 2014 at 12:53 PM, Tobias Grosser <tobias at grosser.es> wrote:

>
> On 07/05/2014 11:48, Daniel Jasper wrote:
>
>> Author: djasper
>> Date: Wed May  7 04:48:30 2014
>> New Revision: 208176
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=208176&view=rev
>> Log:
>> clang-format: Be slightly more aggressive on single-line functions.
>>
>> So that JS functions can also be merged into a single line.
>>
>> Before:
>>    var func = function() {
>>      return 1;
>>    };
>>
>> After:
>>    var func = function() { return 1; };
>>
>
> This change caused the following formatting change in Polly:
>
>  /// Create the Cloog AST from this program.
> -/struct clast_root *Cloog::getClast() { return (clast_root*)ClastRoot; }
> +struct clast_root *Cloog::getClast() {
> +  return (clast_root *)ClastRoot;
> +}
>
> This does not seem to be intentional.
>
> Cheers,
> Tobias
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140507/02d93a49/attachment.html>


More information about the cfe-commits mailing list