GNU Info

Info Node: (ccmode)New Indentation Engine

(ccmode)New Indentation Engine


Next: Minor Modes Prev: Getting Connected Up: Top
Enter node , (file) or (file)node

New Indentation Engine
**********************

   CC Mode has a new indentation engine, providing a simplified, yet
flexible and general mechanism for customizing indentation. It separates
indentation calculation into two steps: first, CC Mode analyzes the
line of code being indented to determine the kind of language construct
it's looking at, then it applies user defined offsets to the current
line based on this analysis.

   This section will briefly cover how indentation is calculated in CC
Mode. It is important to understand the indentation model being used so
that you will know how to customize CC Mode for your personal coding
style.

Syntactic Analysis
Indentation Calculation

automatically generated by info2www version 1.2.2.9