gnatformat Logo
28.0w (20260930)
  • 1. GNATformat Quick CookBook
  • 2. GNATformat User’s Manual
  • 3. GNATformat Formatting options accross GNAT tools
  • 4. GNATformat Custom configurability options
    • 4.1. The configurability of GNATformat
    • 4.2. Unparsing configuration file format
    • 4.3. Configuration snippets examples
gnatformat
  • 4. GNATformat Custom configurability options
  • View page source

4. GNATformat Custom configurability options

  • 4.1. The configurability of GNATformat
  • 4.2. Unparsing configuration file format
    • 4.2.1. Top level structure
    • 4.2.2. Node configurations
    • 4.2.3. Token configurations
    • 4.2.4. Document templates
    • 4.2.5. Expressions
    • 4.2.6. Patterns
    • 4.2.7. Bubble up (handling of trivias)
  • 4.3. Configuration snippets examples
    • 4.3.1. ArrayTypeDef rewrite to enforce vertical formatting
    • 4.3.2. CaseStmt, CaseExpr and VariantPart rewrite to enforce vertical alternatives
    • 4.3.3. EnumTypeDef rewrite to enforce vertical formatting
    • 4.3.4. IfStmt rewrite to place then on a separate line
    • 4.3.5. ForLoopStmt and WhileLoopStmt rewrite to split before loop
    • 4.3.6. Named Aggregate rewrite to enforce vertical formatting
    • 4.3.7. ObjectDecl rewrite to enforce alignment on separators
    • 4.3.8. RecordDef rewrite to break before record
Previous Next

© Copyright 2024-2026, AdaCore.

Built with Sphinx using a theme provided by Read the Docs.