Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Disable Assits++ scan on certain files
Disable Assits++ scan on certain files [message #50710] Fri, 07 December 2018 19:42 Go to next message
Didier is currently offline  Didier
Messages: 476
Registered: November 2008
Location: France
Senior Member
When using Boost::spirit, I have an issue with assist++ scanner : it get's stuck in Boost headers.
So if I want to be able to use Assis++, I have to comment Boost header #include, launch rescan of all files, uncomment the boost headers #include

As BLITZ can be disabled on certain files using
#pragma BLITZ_PROHIBIT


Maybe Assist++ scanning could be disable using something like
#pragma ASSIST_SCAN_PROHIBIT

Re: Disable Assits++ scan on certain files [message #50714 is a reply to message #50710] Sat, 08 December 2018 18:40 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 609
Registered: September 2012
Location: Poland, Kraków
Contributor
Hello,

I found missing documentation page that speaks about your problem. The assist parsing can be turn off by following macros (part of missing documentation):
5. Assist++ C++ parser directives
Assist supports simple directives that are passed to it via '//' comments that can be used in cases that original code is confusing:
//$-
Code past this directive will not be passed to parser.
//$+
Code past this directive will be passed to parser (stops //$-).
//$ code
example: //$ void Foo(Bar&)
Code will be passed to parser (adds code that is not part of compiled sources)


The documentation page will be available tomorrow and it will be bundled with TheIDE. I hope my message will help you to deal with your problem.

Sincerely,
Klugier


Ultimate++ - one framework to rule them all.

[Updated on: Sat, 08 December 2018 18:41]

Report message to a moderator

Re: Disable Assits++ scan on certain files [message #50715 is a reply to message #50714] Sat, 08 December 2018 19:11 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 476
Registered: November 2008
Location: France
Senior Member
Hi Klugier,

I was filled with hope when I saw you're answer thinking i've ignored this for so long... but it doesn't work Crying or Very Sad Crying or Very Sad Crying or Very Sad Crying or Very Sad Crying or Very Sad Crying or Very Sad
I even tried the other way around Confused

//$-
#include <boost/config/warning_disable.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix_core.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include <boost/spirit/include/phoenix_fusion.hpp>
#include <boost/spirit/include/phoenix_stl.hpp>
#include <boost/spirit/include/phoenix_object.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/spirit/include/phoenix_function.hpp>
#include <boost/spirit/include/qi_expect.hpp>
//$+
Re: Disable Assits++ scan on certain files [message #50716 is a reply to message #50714] Sat, 08 December 2018 19:12 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 476
Registered: November 2008
Location: France
Senior Member
Thanks anyway Smile
Re: Disable Assits++ scan on certain files [message #51272 is a reply to message #50716] Tue, 26 February 2019 22:13 Go to previous message
Didier is currently offline  Didier
Messages: 476
Registered: November 2008
Location: France
Senior Member
Hello,

I took some time to find out why it doesn't work in my case, and I think I found a candidate
//$+ and //$- work when parsing the code of a file
But .... the list of files is extracted from the package files and file #include without taking into account the //$+ and //$-
The function that does this extract seems to be (Is this correct ??) : ide/Browser/Base.cpp
BaseInfoSync(Progress& pi)


So the following code does not behave as I expected : I thought the includes (and the included files) would not be processed by assist++
//$-
#include <boost/config/warning_disable.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix_core.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include <boost/spirit/include/phoenix_fusion.hpp>
#include <boost/spirit/include/phoenix_stl.hpp>
#include <boost/spirit/include/phoenix_object.hpp>
#include <boost/spirit/include/phoenix_bind.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/variant/recursive_variant.hpp>
#include <boost/foreach.hpp>
//$+


Maybe the file should be preprocessed by :
CppBase/Pre.cpp
SrcFile PreProcess(Stream& in, Parser& parser)

Before extracting the list of files to be processed by Assist++

[Updated on: Tue, 26 February 2019 22:37]

Report message to a moderator

Previous Topic: cannot debug app -SOLVED
Next Topic: ide/editor usability issues
Goto Forum:
  


Current Time: Mon Mar 25 21:41:49 CET 2019

Total time taken to generate the page: 0.00776 seconds