mirror of
				https://github.com/MaskRay/ccls.git
				synced 2025-11-03 22:04:24 +00:00 
			
		
		
		
	Adapt llvm rL360179: Option may have multiple OptionCategory's
This commit is contained in:
		
							parent
							
								
									6624108fd9
								
							
						
					
					
						commit
						b059ea3262
					
				@ -77,7 +77,11 @@ int main(int argc, char **argv) {
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  for (auto &I : TopLevelSubCommand->OptionsMap)
 | 
			
		||||
#if LLVM_VERSION_MAJOR >= 9 // rL360179
 | 
			
		||||
    if (I.second->Categories[0] != &C)
 | 
			
		||||
#else
 | 
			
		||||
    if (I.second->Category != &C)
 | 
			
		||||
#endif
 | 
			
		||||
      I.second->setHiddenFlag(ReallyHidden);
 | 
			
		||||
 | 
			
		||||
  ParseCommandLineOptions(argc, argv,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user