Jindent - Java Source Code Formatter http://www.jindent.com
 



title
5.6.2.8.7 Directives/Macros

Blank lines after macro functions

Blank lines after macro functions

Inserts a specific number of blank lines after macro functions.


Inserting 1 blank line:

IMPLEMENT_DYNAMIC(CAddSourceDlg, CDialog)
                                       
void method()                           
{                                       
   ...                                  
}                                       


Inserting 2 blank lines:

IMPLEMENT_DYNAMIC(CAddSourceDlg, CDialog)
                                       
                                       
void method()                           
{                                       
   ...                                  
}                                       



Blank lines after using directives

Blank lines after using directives

Inserts a specific number of blank lines after using directives.


Inserting 1 blank line:

using namespace std;                    
                                       
void method()                           
{                                       
   ...                                  
}                                       


Inserting 2 blank lines:

using namespace std;                    
                                       
                                       
void method()                           
{                                       
   ...                                  
}                                       



Blank lines before #if, #ifdef, #ifndef directives

Blank lines before #if, #ifdef, #ifndef directives

Inserts a specific number of blank lines before #if, #ifdef and #ifndef preprocessor directives.


Inserting 1 blank line:

Name::Name()                            
{                                       
    pFirstname = pSurname = 
"\0"        
                                       
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
#endif                                  
}                                       


Inserting 0 blank lines:

Name::Name()                            
{                                       
    pFirstname = pSurname = 
"\0"        
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
#endif                                  
}                                       



Blank lines after #if, #ifdef, #ifndef directives

Blank lines after #if, #ifdef, #ifndef directives

Inserts a specific number of blank lines after #if, #ifdef and #ifndef preprocessor directives.


Inserting 1 blank line:

Name::Name()                            
{                                       
    pFirstname = pSurname = 
"\0"        
#ifdef CONSTRUCTOR_TRACE                
                                       
    cerr << 
"Default Name constructor called.\n";
#endif                                  
}                                       


Inserting 0 blank lines:

Name::Name()                            
{                                       
    pFirstname = pSurname = 
"\0"        
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
#endif                                  
}                                       



Blank lines before #else, #elif directives

Blank lines before #else, #elif directives

Inserts a specific number of blank lines before #else and #elif preprocessor directives.


Inserting 1 blank line:

Name::Name()                            
{                                       
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
                                       
#else                                   
    cerr << 
"Nothing to trace.\n";      
#endif                                  
    
// ...                              
}                                       


Inserting 0 blank lines:

Name::Name()                            
{                                       
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
#else                                   
    cerr << 
"Nothing to trace.\n";      
#endif                                  
    
// ...                              
}                                       



Blank lines after #else, #elif directives

Blank lines after #else, #elif directives

Inserts a specific number of blank lines after #else and #elif preprocessor directives.


Inserting 1 blank line:

Name::Name()                            
{                                       
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
#else                                   
                                       
    cerr << 
"Nothing to trace.\n";      
#endif                                  
    
// ...                              
}                                       


Inserting 0 blank lines:

Name::Name()                            
{                                       
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
#else                                   
    cerr << 
"Nothing to trace.\n";      
#endif                                  
    
// ...                              
}                                       



Blank lines before #endif directives

Blank lines before #endif directives

Inserts a specific number of blank lines before #endif preprocessor directives.


Inserting 1 blank line:

Name::Name()                            
{                                       
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
                                       
#endif                                  
    
// ...                              
}                                       


Inserting 0 blank lines:

Name::Name()                            
{                                       
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
#endif                                  
    
// ...                              
}                                       



Blank lines after #endif directives

Blank lines after #endif directives

Inserts a specific number of blank lines after #endif preprocessor directives.


Inserting 1 blank line:

Name::Name()                            
{                                       
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
#endif                                  
                                       
    
// ...                              
}                                       


Inserting 0 blank lines:

Name::Name()                            
{                                       
#ifdef CONSTRUCTOR_TRACE                
    cerr << 
"Default Name constructor called.\n";
#endif                                  
    
// ...                              
}                                       



Blank lines before #include directives

Blank lines before #include directives

Inserts a specific number of blank lines before #include preprocessor directives.


Inserting 1 blank line:

// ...                                  
                                       
#include "unicode/locid.h"              
#include "unicode/uloc.h"               
// ...                                  


Inserting 0 blank lines:

// ...                                  
#include "unicode/locid.h"              
#include "unicode/uloc.h"               
// ...                                  



Blank lines after #include directives

Blank lines after #include directives

Inserts a specific number of blank lines after #include preprocessor directives.


Inserting 1 blank line:

// ...                                  
#include "unicode/locid.h"              
#include "unicode/uloc.h"               
                                       
// ...                                  


Inserting 0 blank lines:

// ...                                  
#include "unicode/locid.h"              
#include "unicode/uloc.h"               
// ...                                  



Blank lines before #pragma directives

Blank lines before #pragma directives

Inserts a specific number of blank lines before #pragma preprocessor directives.


Inserting 1 blank line:

// ...                                  
                                       
#pragma code_page(1252)                 
// ...                                  


Inserting 0 blank lines:

// ...                                  
#pragma code_page(1252)                 
// ...                                  



Blank lines after #pragma directives

Blank lines after #pragma directives

Inserts a specific number of blank lines after #pragma preprocessor directives.


Inserting 1 blank line:

// ...                                  
#pragma code_page(1252)                 
                                       
// ...                                  


Inserting 0 blank lines:

// ...                                  
#pragma code_page(1252)                 
// ...                                  



Blank lines before #warning #error directives

Blank lines before #warning #error directives

Inserts a specific number of blank lines before #warning and #error preprocessor directives.


Inserting 1 blank line:

// ...                                  
                                       
#error Invalid build platform for this stub.
// ...                                  


Inserting 0 blank lines:

// ...                                  
#error Invalid build platform for this stub.
// ...                                  



Blank lines after #warning #error directives

Blank lines after #warning #error directives

Inserts a specific number of blank lines after #warning and #error preprocessor directives.


Inserting 1 blank line:

// ...                                  
#error Invalid build platform for this stub.
                                       
// ...                                  


Inserting 0 blank lines:

// ...                                  
#error Invalid build platform for this stub.
// ...                                  



Blank lines before #define, #undef directives

Blank lines before #define, #undef directives

Inserts a specific number of blank lines before #define preprocessor directives.


Inserting 1 blank line:

// ...                                  
                                       
#define PCBASELOCATION  "edcache.p2p."  
#define RETRYDAYS       2               
#define SIGNATURELENGTH 256             
// ...                                  


Inserting 0 blank lines:

// ...                                  
#define PCBASELOCATION  "edcache.p2p."  
#define RETRYDAYS       2               
#define SIGNATURELENGTH 256             
// ...                                  



Blank lines after #define, #undef directives

Blank lines after #define, #undef directives

Inserts a specific number of blank lines after #define preprocessor directives.


Inserting 1 blank line:

// ...                                  
#define PCBASELOCATION  "edcache.p2p."  
#define RETRYDAYS       2               
#define SIGNATURELENGTH 256             
                                       
// ...                                  


Inserting 0 blank lines:

// ...                                  
#define PCBASELOCATION  "edcache.p2p."  
#define RETRYDAYS       2               
#define SIGNATURELENGTH 256             
// ...                                  



Blank lines before #line directives

Blank lines before #line directives

Inserts a specific number of blank lines before #line preprocessor directives.


Inserting 1 blank line:

// ...                                  
                                       
#line                                   
// ...                                  


Inserting 0 blank lines:

// ...                                  
#line                                   
// ...                                  



Blank lines after #line directives

Blank lines after #line directives

Inserts a specific number of blank lines after #line preprocessor directives.


Inserting 1 blank line:

// ...                                  
#line                                   
                                       
// ...                                  


Inserting 0 blank lines:

// ...                                  
#line                                   
// ...                                  



Blank lines before other directives

Blank lines before other directives

Inserts a specific number of blank lines before all other types of preprocessor directives which are not covered by one of the blank line settings above.


Inserting 1 blank line:

// ...                                  
                                       
using <Ex9_16lib.dll> // ...


Inserting 0 blank lines:

// ...                                  
using <Ex9_16lib.dll> // ...



Blank lines after other directives

Blank lines after other directives

Inserts a specific number of blank lines before all other types of preprocessor directives which are not covered by one of the blank line settings above.


Inserting 1 blank line:

// ...                                  
using <Ex9_16lib.dll> // ...


Inserting 0 blank lines:

// ...                                  
using <Ex9_16lib.dll> // ...