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 271079

Summary: Macro view should show content from #included file
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: NavigationAssignee: Vladimir Kvashin <vkvashin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Kvashin 2017-07-12 12:18:24 UTC
Below is an example from llvm code. I need macro view to understand  this code. But it does not show the content of included file

  switch (getMetadataID()) {
  default:
    llvm_unreachable("Invalid subclass of MDNode");
#define HANDLE_MDNODE_LEAF(CLASS)                                              \
  case CLASS##Kind: {                                                          \
    std::integral_constant<bool, HasCachedHash<CLASS>::value> ShouldResetHash; \
    dispatchResetHash(cast<CLASS>(this), ShouldResetHash);                     \
    break;                                                                     \
  }
#include "llvm/IR/Metadata.def"
  }

The ugly workaround I usually use is: copy-paste file content or its part instead of #include directive and then use macro view.

This should be automated. If macro view shows not the entire file, but just one method, and this method body contains #include, then obviously the expanded header should be shown.