http://llvm.org/bugs/show_bug.cgi?id=14791

             Bug #: 14791
           Summary: Formatting: INITIALIZE PASS macros misformatted, if
                    followed by function call
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Created attachment 9801
  --> http://llvm.org/bugs/attachment.cgi?id=9801
Test case

The following code is misformatted:

#define INITIALIZE_PASS_BEGIN(a,b,c,d,e)
#define INITIALIZE_AG_DEPENDENCY(A)
#define INITIALIZE_PASS_DEPENDENCY(A)
#define INITIALIZE_PASS_END(a,b,c,d,e)

INITIALIZE_PASS_BEGIN(ScopDetection, "polly-detect", "Detect", false, false)
INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
INITIALIZE_PASS_DEPENDENCY(DominatorTree)
INITIALIZE_PASS_END(ScopDetection, "polly-detect", "Detect", false, false)

int *createScopDetectionPass() {
  return 0;
}

to:

#define INITIALIZE_PASS_BEGIN(a, b, c, d, e)
#define INITIALIZE_AG_DEPENDENCY(A)
#define INITIALIZE_PASS_DEPENDENCY(A)
#define INITIALIZE_PASS_END(a, b, c, d, e)

INITIALIZE_PASS_BEGIN(ScopDetection, "polly-detect", "Detect", false,
                      false) INITIALIZE_AG_DEPENDENCY(
    AliasAnalysis) INITIALIZE_PASS_DEPENDENCY(
    DominatorTree) INITIALIZE_PASS_END(ScopDetection, "polly-detect", "Detect",
                                       false,
                                       false) int *createScopDetectionPass() {
  return 0;
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to