Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - Super long identifiers (Warning 4786)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Super long identifiers (Warning 4786)

 Post Reply Post Reply
Author
Message
Tomasz View Drop Down
Senior Member
Senior Member


Joined: 05 August 2006
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tomasz Quote  Post ReplyReply Direct Link To This Post Topic: Super long identifiers (Warning 4786)
    Posted: 14 October 2007 at 7:19am
Hello,
 
Although I like descriptive names, I think that identifiers like "CXTPSyntaxEditLexVariantPtrArrayExAutomatT" used in SyntaxEdit templates are simply way to long.
There are two points against using them:
a) when used in templates they generate Warning 4786 when compiled in VC6 that can only be surpassed using #pragma in stdafx.h (because it bumps up in afxtempl.h):
g:\visualstudio6\vc98\mfc\include\afxtempl.h(63) : warning C4786: 'XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexObj_SpecCollT<XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexVariantPtrArrayExAutomatT<&XTPSyntaxEditLexAnalyser::FnName_previous_class>,XTPSyn
taxEditLexAnalyser::CXTPSyntaxEditLexVariantPtrArrayExAutomatT<&XTPSyntaxEditLexAnalyser::FnName_previous_tag>,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexVariantPtrArrayExAutomatT<&XTPSyntaxEditLexAnalyser::FnName_previous_tag_separators>,XTPSyntaxE
ditLexAnalyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAna
lyser::CXTPSyntaxEditLexNULL,XTPSyntaxEditLexAnalyser::CXTPSyntaxEditLexNULL>' : identifier was truncated to '255' characters in the debug information
b) such long names bump up DLL size significantly as each such name take space in DLL export table. Almost half of megabyte is wasted on such names.
 
 
How about shortening:
CXTPSyntaxEdit prefix
to
CXTPSE
 
for those helper classes?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.