This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257295

Summary: inaccuracy tests: apt.use.clank and Vlc
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2015-12-25 13:33:59 UTC
test.h:
============================================================================

static inline int foo() {
    const char *s = "== " PRIx32 " ==";
    if (printf("== "PRIx32" ==\n")) { // unresolved identifier
        return 0;
    }
    return 0;
}

============================================================================

main.cpp:
============================================================================

#include <cstdio>
#include <inttypes.h>
#include "test.h"

int main() {
    foo();
    return 0;
}

============================================================================

If apt.use.clank=false, then I see unresolved identifier in test.h.
Comment 1 Vladimir Voskresensky 2016-07-19 13:27:49 UTC
reduced to 
# define PRIx32		"x"

static inline int foo() {
    const char *s = "== " PRIx32;
    const char *p = "== "PRIx32; // not HLed as macro
}